//
//  GBReportViewController.m
//  PublicSentimentMonitorSystem
//
//  Created by 郭斌 on 15/8/11.
//  Copyright (c) 2015年 魏强. All rights reserved.
//  拍照上报页

#import "GBReportViewController.h"
#import "AFNetworking.h"
#import "ImgShowViewController.h"
#import "VIPhotoView.h"
#import "UniversalTableView.h"
#import "SVProgressHUD.h"

@interface GBReportViewController ()<UITextFieldDelegate,UITableViewDataSource,UITableViewDelegate,UITextViewDelegate,UICollectionViewDataSource,UICollectionViewDelegate,UICollectionViewDelegateFlowLayout,UIImagePickerControllerDelegate>
{
    //8.11
    UIScrollView *scrollM; //界面最底部的scrollview
    UITextField *inputTex1; //输入标题的界面
    UIButton *kindSelect; //类型选择按钮
    NSMutableArray *kindArr; //类型种类的数组
    UITableView *tableV;
    
    //8.12
    UILabel *workAskLabel; //工作要求
    UITextView *workAskTextview; //工作要求textview
    UILabel *neirongLabel; //工作内容
    UITextView *neirongTextview; //工作内容textview
    UILabel *describeLabel; //其他描述
    UITextView *describeTextview; //其他描述textview
    UICollectionView *photosCollectionView; //显示图片
    float PhotoWidth; //每张照片的宽度；
    LXActionSheet *actionSheet; //点击加号按钮，出现的选择菜单
    UIImagePickerController *ipc; //显示照片的界面
    NSMutableArray *photoAarray2; //第二个存储图片的数组
    UIButton *reportBtn; //上报按钮
    
    //8.13
    NSMutableArray *kindID; //线索类型的id
    NSString *selectClueID; //选中的线索类型id
    
    //8.24
    UITextField *recheckTextView; //上报人textview
    UITextField *approveTextView; //审核人textview
    UIButton *reportTypeBtn; //上报类型按钮
    NSString *reportTypeStr; //上报类型string
    NSString *reportTypeId; //上报类型Id;
    UniversalTableView *reportTypeTableview; //上报类型tableview
    UILabel *informationTypeLabel; //信息类别label
    UIButton *informationTypeBtn; //信息类别btn
    UniversalTableView *informationTypeTableview; //信息类别tableview
    NSString *informationTypeStr; //信息类别str
    NSString *informationTypeId; //信息类别Id;
    
    UILabel *clueTypeLabel; //线索类型label;
    UILabel *labelRecheck; //上报人label
    UILabel *labelApprove; //审核人label
    UILabel *websiteTypeLabel; //网站类型label
    NSString *websiteTypeStr; //网站类型str
    NSString *websiteTypeId; //网站类型Id;
    UIButton *websiteTyoeBtn; //网站类型btn;
    UniversalTableView *websiteTypeTableview; //网站类型tableview
    UILabel *geographyTypeLable; //物理地域label;
    NSString *geographyTypeStr; //物理地域str
    NSString *geographyTypeId; //物理地域id;
    UIButton *geographyTypeBtn; //物理地域btn;
    UniversalTableView *geographyTypeTableview; //物理地域tableview
    UILabel *activityTypeLabel; //活动形式label;
    NSString *activityTypeStr; //活动形式Str
    NSString *activityTypeId; //活动形式id;
    UIButton *activityTypeBtn; //活动形式btn;
    UniversalTableView *activityTypeTableview; //活动形式tableview
    UILabel *informationLevelLabel; //信息等级label;
    NSString *informationLevelStr; //信息等级str
    NSString *informationLevelId; //信息等级id
    UIButton *informationLevelBtn; //信息等级btn;
    UniversalTableView *informationLevelTableview; //信息等级tableview
    UILabel *informationRegionLabel; //信息归属地label;
    NSString *informationRegionStr; //信息归属地str;
    NSString *informationRegionId; //信息归属地Id
    UIButton *informationRegionBtn; //信息归属地btn;
    UniversalTableView *informationRegionTableview; //信息归属地tableview
    UILabel *mainWordLabel; //主关键字label;
    NSString *mainWordStr; //主关键字str
    NSString *mainWordId; //主关键字ID
    UIButton *mainWordBtn; //主关键字btn;
    UniversalTableView *mainWordTableview; //主关键字tableview
    UILabel *secondWordLabel; //次关键字label;
    NSString *secondWordStr; //次关键字str;
    NSString *secondWordId; //次关键字ID
    UIButton *secondWordBtn; //次关键字btn;
    UniversalTableView *secondWordTableview; //次关键字tableview
    
    //8.25
    UIImageView *ImageView1; //必填项的图片
    UIImageView *ImageView2;
    UIImageView *ImageView3;
    UIImageView *ImageView4;
    UIImageView *ImageView5;
    UIImageView *ImageView6;
    UIImageView *ImageView7;
    
    //1.6
    double keyboardHeight; //键盘的高度
}

/**
 *  没有数据时的提示
 */
@property (nonatomic, weak) UIView * notice;

@end

@implementation GBReportViewController
-(id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if(self)
    {
        // Custom initialization
        _photoArrayS = [NSMutableArray array];
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    photoAarray2 = [NSMutableArray array];
    reportTypeId = @"0";
    informationTypeId = @"0";
    websiteTypeId = @"0";
    geographyTypeId = @"0";
    activityTypeId = @"0";
    informationLevelId = @"0";
    informationRegionId = @"0";
    mainWordId = @"0";
    secondWordId = @"0";
    
    //增加监听，当键盘出现或改变时收出消息
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(keyboardWillShowGuoReport:)
                                                 name:UIKeyboardWillShowNotification
                                               object:nil];
    
    //每次删除照片后执行
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(deletAction:) name:@"deleteP123456" object:nil];
    
    //收到点击tableview的通知
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(selectTheType:) name:@"SelectTheAnyType" object:nil];
    
    PhotoWidth = (screenW - 50) / 4.0;
    kindArr = [NSMutableArray array];
    kindID = [NSMutableArray array];
    self.view.backgroundColor = WQColor(241, 243, 244);
    self.title = @"上报";
     [self createView];
    //现请求数据
//    [self requestData];
    //创建主界面
    //[self createView];
    //NSLog(@"arr = %@",_photoArrayS);
    // Do any additional setup after loading the view.
}

#pragma mark - 获取键盘的高度
- (void)keyboardWillShowGuoReport:(NSNotification *)aNotification
{
    //获取键盘的高度
    NSDictionary *userInfo = [aNotification userInfo];
    NSValue *aValue = [userInfo objectForKey:UIKeyboardFrameEndUserInfoKey];
    CGRect keyboardRect = [aValue CGRectValue];
    int height = keyboardRect.size.height;
    
    keyboardHeight = height;
    KDLog(@"height = %f, view = %f", keyboardHeight, self.view.y);
}

#pragma mark - 收到点击tableview的通知
-(void)selectTheType:(NSNotification *)note
{
    NSDictionary *user = [note userInfo];
    //NSString *tid = [user objectForKey:@"index"];
    NSString *typeName = [user objectForKey:@"TypeName"];
    NSString *whichT = [user objectForKey:@"whichTable"];
    
    if([whichT isEqualToString:@"1"])
    {
        [reportTypeBtn setTitle:typeName forState:UIControlStateNormal];
        reportTypeStr = [NSString stringWithFormat:@"%@",typeName];
        int iddd = [[user objectForKey:@"index"] intValue];
        reportTypeId = [NSString stringWithFormat:@"%d", iddd];
        //NSLog(@"tid = %@" ,reportTypeId);
        [self ReportTypeBtnClick];
    }
    else if([whichT isEqualToString:@"2"])
    {
        [informationTypeBtn setTitle:typeName forState:UIControlStateNormal];
        informationTypeStr = [NSString stringWithFormat:@"%@",typeName];
        int iddd = [[user objectForKey:@"index"] intValue];
        informationTypeId = [NSString stringWithFormat:@"%d", iddd];
        //NSLog(@"tid = %@" ,informationTypeId);
        [self InformationTypeBtnClick];
    }
    else if([whichT isEqualToString:@"3"])
    {
        [websiteTyoeBtn setTitle:typeName forState:UIControlStateNormal];
        websiteTypeStr = [NSString stringWithFormat:@"%@",typeName];
        int iddd = [[user objectForKey:@"index"] intValue];
        websiteTypeId = [NSString stringWithFormat:@"%d", iddd];
        //NSLog(@"tid = %@" ,websiteTypeId);
        [self WebsiteTypeBtnClick];
    }
    else if([whichT isEqualToString:@"4"])
    {
        [geographyTypeBtn setTitle:typeName forState:UIControlStateNormal];
        geographyTypeStr = [NSString stringWithFormat:@"%@",typeName];
        int iddd = [[user objectForKey:@"index"] intValue];
        geographyTypeId = [NSString stringWithFormat:@"%d", iddd];
        //NSLog(@"tid = %@" ,geographyTypeId);
        [self GeographyTypeBtnClick];
    }
    else if([whichT isEqualToString:@"5"])
    {
        [activityTypeBtn setTitle:typeName forState:UIControlStateNormal];
        activityTypeStr = [NSString stringWithFormat:@"%@",typeName];
        int iddd = [[user objectForKey:@"index"] intValue];
        activityTypeId = [NSString stringWithFormat:@"%d", iddd];
        //NSLog(@"tid = %@" ,activityTypeId);
        [self ActivityTypeBtnClick];
    }
    else if([whichT isEqualToString:@"6"])
    {
        [informationLevelBtn setTitle:typeName forState:UIControlStateNormal];
        informationLevelStr = [NSString stringWithFormat:@"%@",typeName];
        int iddd = [[user objectForKey:@"index"] intValue];
        informationLevelId = [NSString stringWithFormat:@"%d", iddd];
        //NSLog(@"tid = %@" ,informationLevelId);
        [self InformationLevelBtnClick];
    }
    else if([whichT isEqualToString:@"7"])
    {
        [informationRegionBtn setTitle:typeName forState:UIControlStateNormal];
        informationRegionStr = [NSString stringWithFormat:@"%@",typeName];
        int iddd = [[user objectForKey:@"index"] intValue];
        informationRegionId = [NSString stringWithFormat:@"%d", iddd];
        //NSLog(@"tid = %@" ,informationRegionId);
        [self InformationRegionBtnClick];
    }
    else if([whichT isEqualToString:@"8"])
    {
        [mainWordBtn setTitle:typeName forState:UIControlStateNormal];
        mainWordStr = [NSString stringWithFormat:@"%@",typeName];
        int iddd = [[user objectForKey:@"index"] intValue];
        mainWordId = [NSString stringWithFormat:@"%d", iddd];
        //NSLog(@"tid = %@" ,mainWordId);
        [self MainwordBtnClick];
    }
    else if([whichT isEqualToString:@"9"])
    {
        [secondWordBtn setTitle:typeName forState:UIControlStateNormal];
        secondWordStr = [NSString stringWithFormat:@"%@",typeName];
        int iddd = [[user objectForKey:@"index"] intValue];
        secondWordId = [NSString stringWithFormat:@"%d", iddd];
        //NSLog(@"tid = %@" ,secondWordId);
        [self SecondwordBtnClick];
    }
}

#pragma mark - 现请求数据
-(void)requestData
{
    [self.notice removeFromSuperview];

    NSString *urll = [NSString stringWithFormat:@"%@&method=reportType", ServerActionAddr];
    NSURLRequest *httpReq = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:urll]];
    KDLog(@"%@",urll);
    AFHTTPRequestOperation *reqOper = [[AFHTTPRequestOperation alloc] initWithRequest:httpReq];
    [reqOper setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *op,id success){
        NSHTTPURLResponse *response = [op response];
        NSInteger code = [response statusCode];
        if (code == 200)
        {
            NSDictionary *jsonDict = [NSJSONSerialization JSONObjectWithData:[op responseData] options:NSJSONReadingMutableContainers error:nil];
            if([jsonDict[@"status"] isEqualToString:@"ok"])
            {
                NSMutableArray *info = jsonDict[@"data"];
                for(NSDictionary *dic in info)
                {
                    [kindArr addObject:dic[@"name"]];
                    NSString *idd = [NSString stringWithFormat:@"%d",[dic[@"clueType_id"] intValue]];
                    [kindID addObject:idd];
                }
                //创建主界面
                [self createView];
                //NSLog(@"%@",kindArr);
            }
        }
    } failure:^(AFHTTPRequestOperation *op, NSError *error) {
        if (error) {
            KDLog(@"req error %@",error);
            
            [SVProgressHUD showErrorWithStatus:@"请检查网络" maskType:SVProgressHUDMaskTypeGradient];
            
            [self setUpNotise];
        }
    }];
    [reqOper start];
}

- (void)setUpNotise
{
    UIView * notice = [[UIView alloc]initWithFrame:CGRectMake(0, 34, screenW, screenH - CGRectGetMaxY(self.view.frame))];
    
    self.notice = notice;
    UIButton * noticeLb = [[UIButton alloc]init];
    noticeLb.frame = notice.bounds;
    notice.backgroundColor = BackGroundColor;
    [noticeLb setTitle:@"请点击屏幕，重新加载！" forState:UIControlStateNormal];
    [noticeLb setTitleColor:WQColor(178, 182, 184) forState:UIControlStateNormal];
    [noticeLb addTarget:self action:@selector(requestData) forControlEvents:UIControlEventTouchUpInside];
    [notice addSubview:noticeLb];
    [self.view addSubview:notice];
}

#pragma mark - 创建主界面
-(void)createView
{
    //滚动视图
    scrollM = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0,screenW,screenH)];
    scrollM.backgroundColor = WQColor(241, 243, 244);
    scrollM.userInteractionEnabled = YES;
    self.view.userInteractionEnabled = YES;
    //设置contentSize大小
    if (self.longPress == 2)
    {
        scrollM.contentSize = CGSizeMake(screenW,1600);
    }
    else
    {
        scrollM.contentSize = CGSizeMake(screenW,1800);
    }
    //设置滚动条的显示
    //水平滚动条
    scrollM.showsHorizontalScrollIndicator = YES;
    //垂直滚动条
    scrollM.showsVerticalScrollIndicator = YES;
    //设置翻页效果
    scrollM.pagingEnabled = NO;
    //设置弹簧效果
    scrollM.bounces = NO;
    [self.view addSubview:scrollM];
    
    ImageView1 = [[UIImageView alloc] initWithFrame:CGRectMake(20, 25, 8, 8)];
    ImageView1.image = [UIImage imageNamed:@"标注"];
    [scrollM addSubview:ImageView1];
    
    UILabel *label1 = [[UILabel alloc] initWithFrame:CGRectMake(36, 15, screenW - 56, 30)];
    label1.text = @"上报标题";
    label1.textColor = [UIColor blackColor];
    [scrollM addSubview:label1];
    
    //上报类型
    UILabel *labelReport = [[UILabel alloc] initWithFrame:CGRectMake(36, 95, screenW - 56, 30)];
    labelReport.text = @"上报类型";
    labelReport.textColor = [UIColor blackColor];
    [scrollM addSubview:labelReport];
    
    //信息类别
    informationTypeLabel = [[UILabel alloc] initWithFrame:CGRectMake(36, 175, screenW - 56, 30)];
    informationTypeLabel.text = @"信息类别";
    informationTypeLabel.textColor = [UIColor blackColor];
    [scrollM addSubview:informationTypeLabel];
    
    //线索类型
    clueTypeLabel = [[UILabel alloc] initWithFrame:CGRectMake(36, 255, screenW - 56, 30)];
    clueTypeLabel.text = @"线索类型";
    clueTypeLabel.textColor = [UIColor blackColor];
    [scrollM addSubview:clueTypeLabel];
    
    //上报内容
    neirongLabel = [[UILabel alloc] initWithFrame:CGRectMake(36, 335, screenW - 56, 30)];
    neirongLabel.text = @"上报内容";
    neirongLabel.textColor = [UIColor blackColor];
    [scrollM addSubview:neirongLabel];
    
    labelRecheck = [[UILabel alloc] initWithFrame:CGRectMake(36, 445, screenW - 56, 30)];
    labelRecheck.text = @"核查人";
    labelRecheck.textColor = [UIColor blackColor];
    [scrollM addSubview:labelRecheck];
    
    labelApprove = [[UILabel alloc] initWithFrame:CGRectMake(36, 525, screenW - 56, 30)];
    labelApprove.text = @"审核人";
    labelApprove.textColor = [UIColor blackColor];
    [scrollM addSubview:labelApprove];
    
    //网站类型
    websiteTypeLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 605, screenW - 40, 30)];
    websiteTypeLabel.text = @"网站类型";
    websiteTypeLabel.textColor = [UIColor blackColor];
    [scrollM addSubview:websiteTypeLabel];
    
    //物理地域
    geographyTypeLable = [[UILabel alloc] initWithFrame:CGRectMake(20, 685, screenW - 40, 30)];
    geographyTypeLable.text = @"物理地域";
    geographyTypeLable.textColor = [UIColor blackColor];
    [scrollM addSubview:geographyTypeLable];
    
    //活动形式
    activityTypeLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 765, screenW - 40, 30)];
    activityTypeLabel.text = @"活动形式";
    activityTypeLabel.textColor = [UIColor blackColor];
    [scrollM addSubview:activityTypeLabel];
    
    //信息等级
    informationLevelLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 845, screenW - 40, 30)];
    informationLevelLabel.text = @"信息等级";
    informationLevelLabel.textColor = [UIColor blackColor];
    [scrollM addSubview:informationLevelLabel];
    
    //信息归属地
    informationRegionLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 925, screenW - 40, 30)];
    informationRegionLabel.text = @"信息归属地";
    informationRegionLabel.textColor = [UIColor blackColor];
    [scrollM addSubview:informationRegionLabel];

    //主关键字
    mainWordLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 1005, screenW - 40, 30)];
    mainWordLabel.text = @"主关键字";
    mainWordLabel.textColor = [UIColor blackColor];
    [scrollM addSubview:mainWordLabel];
    
    //次关键字
    secondWordLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 1085, screenW - 40, 30)];
    secondWordLabel.text = @"次关键字";
    secondWordLabel.textColor = [UIColor blackColor];
    [scrollM addSubview:secondWordLabel];
    
    //工作要求
    workAskLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 1165, screenW - 40, 30)];
    workAskLabel.text = @"工作要求";
    workAskLabel.textColor = [UIColor blackColor];
    [scrollM addSubview:workAskLabel];
    
    //其他描述
    describeLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 1275, screenW - 40, 30)];
    describeLabel.text = @"其他描述";
    describeLabel.textColor = [UIColor blackColor];
    [scrollM addSubview:describeLabel];
    
    UITapGestureRecognizer *tapGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(keyboardHide:)];
    //设置成NO表示当前控件响应后会传播到其他控件上，默认为YES。
    tapGestureRecognizer.cancelsTouchesInView = NO;
    //将触摸事件添加到当前view
    [self.view addGestureRecognizer:tapGestureRecognizer];
    
    //创建输入框
    inputTex1 = [[UITextField alloc] initWithFrame:CGRectMake(20, 50, screenW - 40, 40)];
    inputTex1.borderStyle = UITextBorderStyleNone;
    inputTex1.placeholder = @" 请输入需要上报的标题，言简意赅";
    inputTex1.delegate = self;
    //改变输入框起始位置
    [self setTextFieldLeftPadding:inputTex1 forWidth:5];
    inputTex1.layer.borderColor = [UIColor lightGrayColor].CGColor;
    inputTex1.layer.borderWidth = 1;
    inputTex1.layer.cornerRadius = 6;
    inputTex1.returnKeyType = UIReturnKeyDone;//返回键的类型
    inputTex1.font = [UIFont systemFontOfSize:14];
    inputTex1.backgroundColor = [UIColor whiteColor];
    [scrollM addSubview:inputTex1];
    
    ImageView2 = [[UIImageView alloc] initWithFrame:CGRectMake(20, 105, 8, 8)];
    ImageView2.image = [UIImage imageNamed:@"标注"];
    [scrollM addSubview:ImageView2];
    
    reportTypeBtn = [UIButton buttonWithType:0];
    reportTypeBtn.frame = CGRectMake(20, 130, screenW - 40, 40);
    reportTypeBtn.backgroundColor = [UIColor whiteColor];
    reportTypeBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
    [reportTypeBtn setTitle:@"本地舆情" forState:UIControlStateNormal];
    reportTypeStr = @"本地舆情";
    reportTypeBtn.layer.cornerRadius = 6;
    [reportTypeBtn setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
    reportTypeBtn.titleLabel.font = [UIFont systemFontOfSize:15];
    [reportTypeBtn setImage:[UIImage imageNamed:@"类型下"] forState:UIControlStateNormal];
    [reportTypeBtn setImage:[UIImage imageNamed:@"类型上"] forState:UIControlStateSelected];
    reportTypeBtn.imageEdgeInsets = UIEdgeInsetsMake(0, reportTypeBtn.width - 25, 0, 0);
    [reportTypeBtn addTarget:self action:@selector(ReportTypeBtnClick) forControlEvents:UIControlEventTouchUpInside];

    reportTypeTableview = [[UniversalTableView alloc] initWithFrame:CGRectMake(20, 130, screenW - 40, 40)];
    reportTypeTableview.whichTable = @"1";
    reportTypeTableview.dataArray = @[@"本地舆情",@"本省舆情",@"工作报告",@"引导申请",@"落地申请"];
    [scrollM addSubview:reportTypeTableview];
    [scrollM addSubview:reportTypeBtn];
    
    ImageView3 = [[UIImageView alloc] initWithFrame:CGRectMake(20, 185, 8, 8)];
    ImageView3.image = [UIImage imageNamed:@"标注"];
    [scrollM addSubview:ImageView3];
    
    informationTypeBtn = [UIButton buttonWithType:0];
    informationTypeBtn.frame = CGRectMake(20, 210, screenW - 40, 40);
    informationTypeBtn.backgroundColor = [UIColor whiteColor];
    informationTypeBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
    [informationTypeBtn setTitle:@"单条" forState:UIControlStateNormal];
    informationTypeStr = @"单条";
    informationTypeBtn.layer.cornerRadius = 6;
    [informationTypeBtn setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
    informationTypeBtn.titleLabel.font = [UIFont systemFontOfSize:15];
    [informationTypeBtn setImage:[UIImage imageNamed:@"类型下"] forState:UIControlStateNormal];
    [informationTypeBtn setImage:[UIImage imageNamed:@"类型上"] forState:UIControlStateSelected];
    informationTypeBtn.imageEdgeInsets = UIEdgeInsetsMake(0, informationTypeBtn.width - 25, 0, 0);
    [informationTypeBtn addTarget:self action:@selector(InformationTypeBtnClick) forControlEvents:UIControlEventTouchUpInside];
    
    informationTypeTableview = [[UniversalTableView alloc] initWithFrame:CGRectMake(20, 210, screenW - 40, 40)];
    informationTypeTableview.dataArray = @[@"单条",@"综合",@"约稿",@"工作报告",@"紧急敏感",@"引导申请",@"落地申请"];
    informationTypeTableview.whichTable = @"2";
    [scrollM addSubview:informationTypeTableview];
    [scrollM addSubview:informationTypeBtn];
    
    ImageView4 = [[UIImageView alloc] initWithFrame:CGRectMake(20, 265, 8, 8)];
    ImageView4.image = [UIImage imageNamed:@"标注"];
    [scrollM addSubview:ImageView4];
    
    kindSelect = [UIButton buttonWithType:0];
    kindSelect.frame = CGRectMake(20, 290, screenW - 40, 40);
    kindSelect.backgroundColor = [UIColor whiteColor];
    kindSelect.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
    [kindSelect setTitle:kindArr[0] forState:UIControlStateNormal];
    selectClueID = [NSString stringWithFormat:@"%@",kindID[0]];
    kindSelect.layer.cornerRadius = 6;
    [kindSelect setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
    kindSelect.titleLabel.font = [UIFont systemFontOfSize:15];
    [kindSelect setImage:[UIImage imageNamed:@"类型下"] forState:UIControlStateNormal];
    [kindSelect setImage:[UIImage imageNamed:@"类型上"] forState:UIControlStateSelected];
    kindSelect.imageEdgeInsets = UIEdgeInsetsMake(0, kindSelect.width-25, 0, 0);
    [kindSelect addTarget:self action:@selector(kindBtnClick) forControlEvents:UIControlEventTouchUpInside];
    
    tableV = [[UITableView alloc] initWithFrame:CGRectMake(20, 290, screenW - 40, 40)];
    tableV.rowHeight = 40;
    tableV.tableFooterView = [[UIView alloc] init];
    tableV.delegate = self;
    tableV.dataSource = self;
    [scrollM addSubview:tableV];
    [scrollM addSubview:kindSelect];

    ImageView5 = [[UIImageView alloc] initWithFrame:CGRectMake(20, 345, 8, 8)];
    ImageView5.image = [UIImage imageNamed:@"标注"];
    [scrollM addSubview:ImageView5];
    
    neirongTextview = [[UITextView alloc] initWithFrame:CGRectMake(20, 370, screenW - 40, 70)];
    neirongTextview.backgroundColor = [UIColor whiteColor];
    neirongTextview.text = @"请输入上报内容";
    neirongTextview.tag = 101;
    //改变输入框起始位置
    neirongTextview.contentInset = UIEdgeInsetsMake(8, 0, 0, 0);
    neirongTextview.layer.borderColor = [UIColor lightGrayColor].CGColor;
    neirongTextview.layer.borderWidth = 1;
    neirongTextview.layer.cornerRadius = 6;
    neirongTextview.returnKeyType = UIReturnKeyDone;//返回键的类型
    neirongTextview.font = [UIFont systemFontOfSize:14];
    neirongTextview.textColor = [UIColor grayColor];
    neirongTextview.delegate = self;
    [scrollM addSubview:neirongTextview];
    
    ImageView6 = [[UIImageView alloc] initWithFrame:CGRectMake(20, 455, 8, 8)];
    ImageView6.image = [UIImage imageNamed:@"标注"];
    [scrollM addSubview:ImageView6];
    
    //核查人
    recheckTextView = [[UITextField alloc] initWithFrame:CGRectMake(20, 480, screenW - 40, 40)];
    recheckTextView.borderStyle = UITextBorderStyleNone;
    recheckTextView.placeholder = @" 请输入核查人";
    recheckTextView.delegate = self;
    //改变输入框起始位置
    [self setTextFieldLeftPadding:recheckTextView forWidth:5];
    recheckTextView.layer.borderColor = [UIColor lightGrayColor].CGColor;
    recheckTextView.layer.borderWidth = 1;
    recheckTextView.layer.cornerRadius = 6;
    recheckTextView.returnKeyType = UIReturnKeyDone;//返回键的类型
    recheckTextView.font = [UIFont systemFontOfSize:14];
    recheckTextView.backgroundColor = [UIColor whiteColor];
    [scrollM addSubview:recheckTextView];
    
    ImageView7 = [[UIImageView alloc] initWithFrame:CGRectMake(20, 535, 8, 8)];
    ImageView7.image = [UIImage imageNamed:@"标注"];
    [scrollM addSubview:ImageView7];
    
    //审核人
    approveTextView = [[UITextField alloc] initWithFrame:CGRectMake(20, 560, screenW - 40, 40)];
    approveTextView.borderStyle = UITextBorderStyleNone;
    approveTextView.placeholder = @" 请输入审核人";
    approveTextView.delegate = self;
    //改变输入框起始位置
    [self setTextFieldLeftPadding:approveTextView forWidth:5];
    approveTextView.layer.borderColor = [UIColor lightGrayColor].CGColor;
    approveTextView.layer.borderWidth = 1;
    approveTextView.layer.cornerRadius = 6;
    approveTextView.returnKeyType = UIReturnKeyDone;//返回键的类型
    approveTextView.font = [UIFont systemFontOfSize:14];
    approveTextView.backgroundColor = [UIColor whiteColor];
    [scrollM addSubview:approveTextView];
    
    websiteTyoeBtn = [UIButton buttonWithType:0];
    websiteTyoeBtn.frame = CGRectMake(20, 640, screenW - 40, 40);
    websiteTyoeBtn.backgroundColor = [UIColor whiteColor];
    websiteTyoeBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
    [websiteTyoeBtn setTitle:@"新闻网站" forState:UIControlStateNormal];
    websiteTypeStr = @"新闻网站";
    websiteTyoeBtn.layer.cornerRadius = 6;
    [websiteTyoeBtn setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
    websiteTyoeBtn.titleLabel.font = [UIFont systemFontOfSize:15];
    [websiteTyoeBtn setImage:[UIImage imageNamed:@"类型下"] forState:UIControlStateNormal];
    [websiteTyoeBtn setImage:[UIImage imageNamed:@"类型上"] forState:UIControlStateSelected];
    websiteTyoeBtn.imageEdgeInsets = UIEdgeInsetsMake(0, websiteTyoeBtn.width - 25, 0, 0);
    [websiteTyoeBtn addTarget:self action:@selector(WebsiteTypeBtnClick) forControlEvents:UIControlEventTouchUpInside];
    
    websiteTypeTableview = [[UniversalTableView alloc] initWithFrame:CGRectMake(20, 640, screenW - 40, 40)];
    websiteTypeTableview.dataArray = @[@"新闻网站",@"社交网站",@"论坛",@"微博",@"博客",@"微信",@"及时通讯",@"视频网站",@"国内门户及论坛",@"省内门户及论坛",@"其他"];
    websiteTypeTableview.whichTable = @"3";
    [scrollM addSubview:websiteTypeTableview];
    [scrollM addSubview:websiteTyoeBtn];
    
    geographyTypeBtn = [UIButton buttonWithType:0];
    geographyTypeBtn.frame = CGRectMake(20, 720, screenW - 40, 40);
    geographyTypeBtn.backgroundColor = [UIColor whiteColor];
    geographyTypeBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
    [geographyTypeBtn setTitle:@"不详" forState:UIControlStateNormal];
    geographyTypeStr = @"不详";
    geographyTypeBtn.layer.cornerRadius = 6;
    [geographyTypeBtn setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
    geographyTypeBtn.titleLabel.font = [UIFont systemFontOfSize:15];
    [geographyTypeBtn setImage:[UIImage imageNamed:@"类型下"] forState:UIControlStateNormal];
    [geographyTypeBtn setImage:[UIImage imageNamed:@"类型上"] forState:UIControlStateSelected];
    geographyTypeBtn.imageEdgeInsets = UIEdgeInsetsMake(0, geographyTypeBtn.width - 25, 0, 0);
    [geographyTypeBtn addTarget:self action:@selector(GeographyTypeBtnClick) forControlEvents:UIControlEventTouchUpInside];
    
    geographyTypeTableview = [[UniversalTableView alloc] initWithFrame:CGRectMake(20, 720, screenW - 40, 40)];
    geographyTypeTableview.whichTable = @"4";
    geographyTypeTableview.dataArray = @[@"不详",@"境内",@"境外"];
    [scrollM addSubview:geographyTypeTableview];
    [scrollM addSubview:geographyTypeBtn];
    
    activityTypeBtn = [UIButton buttonWithType:0];
    activityTypeBtn.frame = CGRectMake(20, 800, screenW - 40, 40);
    activityTypeBtn.backgroundColor = [UIColor whiteColor];
    activityTypeBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
    [activityTypeBtn setTitle:@"网名转载转帖" forState:UIControlStateNormal];
    activityTypeStr = @"网名转载转帖";
    activityTypeBtn.layer.cornerRadius = 6;
    [activityTypeBtn setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
    activityTypeBtn.titleLabel.font = [UIFont systemFontOfSize:15];
    [activityTypeBtn setImage:[UIImage imageNamed:@"类型下"] forState:UIControlStateNormal];
    [activityTypeBtn setImage:[UIImage imageNamed:@"类型上"] forState:UIControlStateSelected];
    activityTypeBtn.imageEdgeInsets = UIEdgeInsetsMake(0, activityTypeBtn.width - 25, 0, 0);
    [activityTypeBtn addTarget:self action:@selector(ActivityTypeBtnClick) forControlEvents:UIControlEventTouchUpInside];
    
    activityTypeTableview = [[UniversalTableView alloc] initWithFrame:CGRectMake(20, 800, screenW - 40, 40)];
    activityTypeTableview.whichTable = @"5";
    activityTypeTableview.dataArray = @[@"网名转载转帖",@"发表公开信/呼吁书",@"发表过激言论",@"网上煽动",@"网上签名",@"网上组织、策划、勾联",@"媒体网站报道",@"涉本市领导人",@"论坛微博"];
    [scrollM addSubview:activityTypeTableview];
    [scrollM addSubview:activityTypeBtn];
    
    informationLevelBtn = [UIButton buttonWithType:0];
    informationLevelBtn.frame = CGRectMake(20, 880, screenW - 40, 40);
    informationLevelBtn.backgroundColor = [UIColor whiteColor];
    informationLevelBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
    [informationLevelBtn setTitle:@"普通" forState:UIControlStateNormal];
    informationLevelStr = @"普通";
    informationLevelBtn.layer.cornerRadius = 6;
    [informationLevelBtn setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
    informationLevelBtn.titleLabel.font = [UIFont systemFontOfSize:15];
    [informationLevelBtn setImage:[UIImage imageNamed:@"类型下"] forState:UIControlStateNormal];
    [informationLevelBtn setImage:[UIImage imageNamed:@"类型上"] forState:UIControlStateSelected];
    informationLevelBtn.imageEdgeInsets = UIEdgeInsetsMake(0, informationLevelBtn.width - 25, 0, 0);
    [informationLevelBtn addTarget:self action:@selector(InformationLevelBtnClick) forControlEvents:UIControlEventTouchUpInside];
    
    informationLevelTableview = [[UniversalTableView alloc] initWithFrame:CGRectMake(20, 880, screenW - 40, 40)];
    informationLevelTableview.whichTable = @"6";
    informationLevelTableview.dataArray = @[@"普通",@"急件",@"加急",@"特急",@"特提"];
    [scrollM addSubview:informationLevelTableview];
    [scrollM addSubview:informationLevelBtn];
    
    informationRegionBtn = [UIButton buttonWithType:0];
    informationRegionBtn.frame = CGRectMake(20, 960, screenW - 40, 40);
    informationRegionBtn.backgroundColor = [UIColor whiteColor];
    informationRegionBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
    [informationRegionBtn setTitle:@"非本地" forState:UIControlStateNormal];
    informationRegionStr = @"非本地";
    informationRegionBtn.layer.cornerRadius = 6;
    [informationRegionBtn setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
    informationRegionBtn.titleLabel.font = [UIFont systemFontOfSize:15];
    [informationRegionBtn setImage:[UIImage imageNamed:@"类型下"] forState:UIControlStateNormal];
    [informationRegionBtn setImage:[UIImage imageNamed:@"类型上"] forState:UIControlStateSelected];
    informationRegionBtn.imageEdgeInsets = UIEdgeInsetsMake(0, informationRegionBtn.width - 25, 0, 0);
    [informationRegionBtn addTarget:self action:@selector(InformationRegionBtnClick) forControlEvents:UIControlEventTouchUpInside];
    
    informationRegionTableview = [[UniversalTableView alloc] initWithFrame:CGRectMake(20, 960, screenW - 40, 40)];
    informationRegionTableview.whichTable = @"7";
    informationRegionTableview.dataArray = @[@"非本地",@"本地"];
    [scrollM addSubview:informationRegionTableview];
    [scrollM addSubview:informationRegionBtn];
    
    mainWordBtn = [UIButton buttonWithType:0];
    mainWordBtn.frame = CGRectMake(20, 1040, screenW - 40, 40);
    mainWordBtn.backgroundColor = [UIColor whiteColor];
    mainWordBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
    [mainWordBtn setTitle:@"网上舆论热点" forState:UIControlStateNormal];
    mainWordStr = @"网上舆论热点";
    mainWordBtn.layer.cornerRadius = 6;
    [mainWordBtn setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
    mainWordBtn.titleLabel.font = [UIFont systemFontOfSize:15];
    [mainWordBtn setImage:[UIImage imageNamed:@"类型下"] forState:UIControlStateNormal];
    [mainWordBtn setImage:[UIImage imageNamed:@"类型上"] forState:UIControlStateSelected];
    mainWordBtn.imageEdgeInsets = UIEdgeInsetsMake(0, mainWordBtn.width - 25, 0, 0);
    [mainWordBtn addTarget:self action:@selector(MainwordBtnClick) forControlEvents:UIControlEventTouchUpInside];
    
    mainWordTableview = [[UniversalTableView alloc] initWithFrame:CGRectMake(20, 1040, screenW - 40, 40)];
    mainWordTableview.whichTable = @"8";
    mainWordTableview.dataArray = @[@"网上舆论热点",@"涉日",@"维权",@"各类思潮",@"法轮功信息",@"宗教",@"涉警舆论",@"反恐信息",@"网络安全事件",@"涉嫌失泄密",@"工作报告",@"敌对组织活动",@"组党结社",@"周边国家及地区",@"奥运",@"舆情工作",@"其它"];
    [scrollM addSubview:mainWordTableview];
    [scrollM addSubview:mainWordBtn];
    
    secondWordBtn = [UIButton buttonWithType:0];
    secondWordBtn.frame = CGRectMake(20, 1120, screenW - 40, 40);
    secondWordBtn.backgroundColor = [UIColor whiteColor];
    secondWordBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
    [secondWordBtn setTitle:@"国家领导人活动" forState:UIControlStateNormal];
    secondWordStr = @"国家领导人活动";
    mainWordBtn.layer.cornerRadius = 6;
    [secondWordBtn setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
    secondWordBtn.titleLabel.font = [UIFont systemFontOfSize:15];
    [secondWordBtn setImage:[UIImage imageNamed:@"类型下"] forState:UIControlStateNormal];
    [secondWordBtn setImage:[UIImage imageNamed:@"类型上"] forState:UIControlStateSelected];
    secondWordBtn.imageEdgeInsets = UIEdgeInsetsMake(0, secondWordBtn.width - 25, 0, 0);
    [secondWordBtn addTarget:self action:@selector(SecondwordBtnClick) forControlEvents:UIControlEventTouchUpInside];
    
    secondWordTableview = [[UniversalTableView alloc] initWithFrame:CGRectMake(20, 1120, screenW - 40, 40)];
    secondWordTableview.whichTable = @"9";
    secondWordTableview.dataArray = @[@"国家领导人活动",@"重要会议",@"国家重大方针、政策",@"境外重大事件",@"重大司法案件",@"其他"];
    [scrollM addSubview:secondWordTableview];
    [scrollM addSubview:secondWordBtn];
    
    workAskTextview = [[UITextView alloc] initWithFrame:CGRectMake(20, 1200, screenW - 40, 70)];
    workAskTextview.backgroundColor = [UIColor whiteColor];
    workAskTextview.text = @"请输入工作要求";
    workAskTextview.tag = 100;
    workAskTextview.layer.borderColor = [UIColor lightGrayColor].CGColor;
    workAskTextview.layer.borderWidth = 1;
    workAskTextview.layer.cornerRadius = 6;
    workAskTextview.returnKeyType = UIReturnKeyDone;//返回键的类型
    workAskTextview.font = [UIFont systemFontOfSize:14];
    workAskTextview.textColor = [UIColor grayColor];
    workAskTextview.delegate = self;
    [scrollM addSubview:workAskTextview];
    
    describeTextview = [[UITextView alloc] initWithFrame:CGRectMake(20, 1310, screenW - 40, 70)];
    describeTextview.backgroundColor = [UIColor whiteColor];
    describeTextview.text = @"请输入补充内容";
    describeTextview.tag = 102;
    describeTextview.layer.borderColor = [UIColor lightGrayColor].CGColor;
    describeTextview.layer.borderWidth = 1;
    describeTextview.layer.cornerRadius = 6;
    describeTextview.returnKeyType = UIReturnKeyDone;//返回键的类型
    describeTextview.font = [UIFont systemFontOfSize:14];
    describeTextview.textColor = [UIColor grayColor];
    describeTextview.delegate = self;
    [scrollM addSubview:describeTextview];

    reportBtn = [UIButton buttonWithType:0];
    if (self.longPress == 2)
    {
        reportBtn.frame = CGRectMake(20, 1425, screenW - 40, 30);
    }
    else
    {
        reportBtn.frame = CGRectMake(20, 1585, screenW - 40, 30);
    }
    reportBtn.layer.cornerRadius = 6;
    [reportBtn setTitle:@"提交" forState:UIControlStateNormal];
    reportBtn.backgroundColor = WQColor(23, 165, 84);
    [reportBtn addTarget:self action:@selector(reportTheData) forControlEvents:UIControlEventTouchUpInside];
    [reportBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [scrollM addSubview:reportBtn];
    
    //初始化显示小图片的collectionview
    if (self.longPress != 2)
    {
        [self createCollectView];
    }
}

#pragma mark - 次关键字按钮点击
-(void)SecondwordBtnClick
{
    if(!secondWordBtn.isSelected)
    {
        [UIView animateWithDuration:0.3 animations:^{
            if (self.longPress == 2)
            {
                scrollM.contentSize = CGSizeMake(screenW, 1800);
                reportBtn.frame = CGRectMake(20, 1620, screenW - 40, 30);
            }
            else
            {
                scrollM.contentSize = CGSizeMake(screenW, 2000);
                photosCollectionView.frame = CGRectMake(20, 1605, screenW - 40, 160);
                reportBtn.frame = CGRectMake(20, 1780, screenW - 40, 30);
            }
            reportTypeTableview.frame = CGRectMake(20, 130, screenW - 40, 40);
            informationTypeLabel.frame = CGRectMake(36, 175, screenW - 56, 30);
            ImageView3.frame = CGRectMake(20, 185, 8, 8);
            informationTypeBtn.frame = CGRectMake(20, 210, screenW - 40, 40);
            informationTypeTableview.frame = CGRectMake(20, 210, screenW - 40, 40);
            clueTypeLabel.frame = CGRectMake(36, 255, screenW - 56, 30);
            ImageView4.frame = CGRectMake(20, 265, 8, 8);
            kindSelect.frame = CGRectMake(20, 290, screenW - 40, 40);
            tableV.frame = CGRectMake(20, 290, screenW - 40, 40);
            neirongLabel.frame = CGRectMake(36, 335, screenW - 56, 30);
            ImageView5.frame = CGRectMake(20, 345, 8, 8);
            neirongTextview.frame = CGRectMake(20, 370, screenW - 40, 70);
            labelRecheck.frame = CGRectMake(36, 445, screenW - 56, 30);
            ImageView6.frame = CGRectMake(20, 455, 8, 8);
            recheckTextView.frame = CGRectMake(20, 480, screenW - 40, 40);
            labelApprove.frame = CGRectMake(36, 525, screenW - 56, 30);
            ImageView7.frame = CGRectMake(20, 535, 8, 8);
            approveTextView.frame = CGRectMake(20, 560, screenW - 40, 40);
            websiteTypeLabel.frame = CGRectMake(20, 605, screenW - 40, 30);
            websiteTyoeBtn.frame = CGRectMake(20, 640, screenW - 40, 40);
            websiteTypeTableview.frame = CGRectMake(20, 640, screenW - 40, 40);
            geographyTypeLable.frame = CGRectMake(20, 685, screenW - 40, 30);
            geographyTypeBtn.frame = CGRectMake(20, 720, screenW - 40, 40);
            geographyTypeTableview.frame = CGRectMake(20, 720, screenW - 40, 40);
            activityTypeLabel.frame = CGRectMake(20, 765, screenW - 40, 30);
            activityTypeBtn.frame = CGRectMake(20, 800, screenW - 40, 40);
            activityTypeTableview.frame = CGRectMake(20, 800, screenW - 40, 40);
            informationLevelLabel.frame = CGRectMake(20, 845, screenW - 40, 30);
            informationLevelBtn.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationLevelTableview.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationRegionLabel.frame = CGRectMake(20, 925, screenW - 40, 30);
            informationRegionBtn.frame = CGRectMake(20, 960, screenW - 40, 40);
            informationRegionTableview.frame = CGRectMake(20, 960, screenW - 40, 40);
            mainWordLabel.frame = CGRectMake(20, 1005, screenW - 40, 30);
            mainWordBtn.frame = CGRectMake(20, 1040, screenW - 40, 40);
            mainWordTableview.frame = CGRectMake(20, 1040, screenW - 40, 40);
            secondWordLabel.frame = CGRectMake(20, 1085, screenW - 40, 30);
            secondWordBtn.frame = CGRectMake(20, 1120, screenW - 40, 40);
            secondWordTableview.frame = CGRectMake(20, 1165, screenW - 40, 200);
            workAskLabel.frame = CGRectMake(20, 1370, screenW - 40, 30);
            workAskTextview.frame = CGRectMake(20, 1405, screenW - 40, 70);
            describeLabel.frame = CGRectMake(20, 1480, screenW - 40, 30);
            describeTextview.frame = CGRectMake(20, 1515, screenW - 40, 70);
            //photosCollectionView.frame = CGRectMake(20, 1605, screenW - 40, 160);
            //reportBtn.frame = CGRectMake(20, 1780, screenW - 40, 30);
        }];
    }
    else
    {
        [UIView animateWithDuration:0.3 animations:^{
            if (self.longPress == 2)
            {
                scrollM.contentSize = CGSizeMake(screenW, 1600);
                reportBtn.frame = CGRectMake(20, 1415, screenW - 40, 30);
            }
            else
            {
                scrollM.contentSize = CGSizeMake(screenW, 1800);
                photosCollectionView.frame = CGRectMake(20, 1400, screenW - 40, 160);
                reportBtn.frame = CGRectMake(20, 1575, screenW - 40, 30);
            }
            reportTypeTableview.frame = CGRectMake(20, 130, screenW - 40, 40);
            informationTypeLabel.frame = CGRectMake(36, 175, screenW - 56, 30);
            ImageView3.frame = CGRectMake(20, 185, 8, 8);
            informationTypeBtn.frame = CGRectMake(20, 210, screenW - 40, 40);
            informationTypeTableview.frame = CGRectMake(20, 210, screenW - 40, 40);
            clueTypeLabel.frame = CGRectMake(36, 255, screenW - 56, 30);
            ImageView4.frame = CGRectMake(20, 265, 8, 8);
            kindSelect.frame = CGRectMake(20, 290, screenW - 40, 40);
            tableV.frame = CGRectMake(20, 290, screenW - 40, 40);
            neirongLabel.frame = CGRectMake(36, 335, screenW - 56, 30);
            ImageView5.frame = CGRectMake(20, 345, 8, 8);
            neirongTextview.frame = CGRectMake(20, 370, screenW - 40, 70);
            labelRecheck.frame = CGRectMake(36, 445, screenW - 56, 30);
            ImageView6.frame = CGRectMake(20, 455, 8, 8);
            recheckTextView.frame = CGRectMake(20, 480, screenW - 40, 40);
            labelApprove.frame = CGRectMake(36, 525, screenW - 56, 30);
            ImageView7.frame = CGRectMake(20, 535, 8, 8);
            approveTextView.frame = CGRectMake(20, 560, screenW - 40, 40);
            websiteTypeLabel.frame = CGRectMake(20, 605, screenW - 40, 30);
            websiteTyoeBtn.frame = CGRectMake(20, 640, screenW - 40, 40);
            websiteTypeTableview.frame = CGRectMake(20, 640, screenW - 40, 40);
            geographyTypeLable.frame = CGRectMake(20, 685, screenW - 40, 30);
            geographyTypeBtn.frame = CGRectMake(20, 720, screenW - 40, 40);
            geographyTypeTableview.frame = CGRectMake(20, 720, screenW - 40, 40);
            activityTypeLabel.frame = CGRectMake(20, 765, screenW - 40, 30);
            activityTypeBtn.frame = CGRectMake(20, 800, screenW - 40, 40);
            activityTypeTableview.frame = CGRectMake(20, 800, screenW - 40, 40);
            informationLevelLabel.frame = CGRectMake(20, 845, screenW - 40, 30);
            informationLevelBtn.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationLevelTableview.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationRegionLabel.frame = CGRectMake(20, 925, screenW - 40, 30);
            informationRegionBtn.frame = CGRectMake(20, 960, screenW - 40, 40);
            informationRegionTableview.frame = CGRectMake(20, 960, screenW - 40, 40);
            mainWordLabel.frame = CGRectMake(20, 1005, screenW - 40, 30);
            mainWordBtn.frame = CGRectMake(20, 1040, screenW - 40, 40);
            mainWordTableview.frame = CGRectMake(20, 1040, screenW - 40, 40);
            secondWordLabel.frame = CGRectMake(20, 1085, screenW - 40, 30);
            secondWordBtn.frame = CGRectMake(20, 1120, screenW - 40, 40);
            secondWordTableview.frame = CGRectMake(20, 1120, screenW - 40, 40);
            workAskLabel.frame = CGRectMake(20, 1165, screenW - 40, 30);
            workAskTextview.frame = CGRectMake(20, 1200, screenW - 40, 70);
            describeLabel.frame = CGRectMake(20, 1275, screenW - 40, 30);
            describeTextview.frame = CGRectMake(20, 1310, screenW - 40, 70);
//            photosCollectionView.frame = CGRectMake(20, 1400, screenW - 40, 160);
//            reportBtn.frame = CGRectMake(20, 1575, screenW - 40, 30);
        }];
    }
    if(kindSelect.selected)
    {
        kindSelect.selected = !kindSelect.selected;
    }
    if(reportTypeBtn.selected)
    {
        reportTypeBtn.selected = !reportTypeBtn.selected;
    }
    if(informationTypeBtn.selected)
    {
        informationTypeBtn.selected = !informationTypeBtn.selected;
    }
    if(websiteTyoeBtn.selected)
    {
        websiteTyoeBtn.selected = !websiteTyoeBtn.selected;
    }
    if(geographyTypeBtn.selected)
    {
        geographyTypeBtn.selected = !geographyTypeBtn.selected;
    }
    if(activityTypeBtn.selected)
    {
        activityTypeBtn.selected = !activityTypeBtn.selected;
    }
    if(informationLevelBtn.selected)
    {
        informationLevelBtn.selected = !informationLevelBtn.selected;
    }
    if(informationRegionBtn.selected)
    {
        informationRegionBtn.selected = !informationRegionBtn.selected;
    }
    if(mainWordBtn.selected)
    {
        mainWordBtn.selected = !mainWordBtn.selected;
    }
    secondWordBtn.selected = !secondWordBtn.selected;
}

#pragma mark - 主关键字按钮点击
-(void)MainwordBtnClick
{
    if(!mainWordBtn.isSelected)
    {
        [UIView animateWithDuration:0.3 animations:^{
            if (self.longPress == 2)
            {
                scrollM.contentSize = CGSizeMake(screenW, 1800);
                reportBtn.frame = CGRectMake(20, 1620, screenW - 40, 30);
            }
            else
            {
                scrollM.contentSize = CGSizeMake(screenW, 2000);
                photosCollectionView.frame = CGRectMake(20, 1605, screenW - 40, 160);
                reportBtn.frame = CGRectMake(20, 1780, screenW - 40, 30);
            }
            reportTypeTableview.frame = CGRectMake(20, 130, screenW - 40, 40);
            informationTypeLabel.frame = CGRectMake(36, 175, screenW - 56, 30);
            ImageView3.frame = CGRectMake(20, 185, 8, 8);
            informationTypeBtn.frame = CGRectMake(20, 210, screenW - 40, 40);
            informationTypeTableview.frame = CGRectMake(20, 210, screenW - 40, 40);
            clueTypeLabel.frame = CGRectMake(36, 255, screenW - 56, 30);
            ImageView4.frame = CGRectMake(20, 265, 8, 8);
            kindSelect.frame = CGRectMake(20, 290, screenW - 40, 40);
            tableV.frame = CGRectMake(20, 290, screenW - 40, 40);
            neirongLabel.frame = CGRectMake(36, 335, screenW - 56, 30);
            ImageView5.frame = CGRectMake(20, 345, 8, 8);
            neirongTextview.frame = CGRectMake(20, 370, screenW - 40, 70);
            labelRecheck.frame = CGRectMake(36, 445, screenW - 56, 30);
            ImageView6.frame = CGRectMake(20, 455, 8, 8);
            recheckTextView.frame = CGRectMake(20, 480, screenW - 40, 40);
            labelApprove.frame = CGRectMake(36, 525, screenW - 56, 30);
            ImageView7.frame = CGRectMake(20, 535, 8, 8);
            approveTextView.frame = CGRectMake(20, 560, screenW - 40, 40);
            websiteTypeLabel.frame = CGRectMake(20, 605, screenW - 40, 30);
            websiteTyoeBtn.frame = CGRectMake(20, 640, screenW - 40, 40);
            websiteTypeTableview.frame = CGRectMake(20, 640, screenW - 40, 40);
            geographyTypeLable.frame = CGRectMake(20, 685, screenW - 40, 30);
            geographyTypeBtn.frame = CGRectMake(20, 720, screenW - 40, 40);
            geographyTypeTableview.frame = CGRectMake(20, 720, screenW - 40, 40);
            activityTypeLabel.frame = CGRectMake(20, 765, screenW - 40, 30);
            activityTypeBtn.frame = CGRectMake(20, 800, screenW - 40, 40);
            activityTypeTableview.frame = CGRectMake(20, 800, screenW - 40, 40);
            informationLevelLabel.frame = CGRectMake(20, 845, screenW - 40, 30);
            informationLevelBtn.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationLevelTableview.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationRegionLabel.frame = CGRectMake(20, 925, screenW - 40, 30);
            informationRegionBtn.frame = CGRectMake(20, 960, screenW - 40, 40);
            informationRegionTableview.frame = CGRectMake(20, 960, screenW - 40, 40);
            mainWordLabel.frame = CGRectMake(20, 1005, screenW - 40, 30);
            mainWordBtn.frame = CGRectMake(20, 1040, screenW - 40, 40);
            mainWordTableview.frame = CGRectMake(20, 1085, screenW - 40, 200);
            secondWordLabel.frame = CGRectMake(20, 1290, screenW - 40, 30);
            secondWordBtn.frame = CGRectMake(20, 1325, screenW - 40, 40);
            secondWordTableview.frame = CGRectMake(20, 1325, screenW - 40, 40);
            workAskLabel.frame = CGRectMake(20, 1370, screenW - 40, 30);
            workAskTextview.frame = CGRectMake(20, 1405, screenW - 40, 70);
            describeLabel.frame = CGRectMake(20, 1480, screenW - 40, 30);
            describeTextview.frame = CGRectMake(20, 1515, screenW - 40, 70);
//            photosCollectionView.frame = CGRectMake(20, 1605, screenW - 40, 160);
//            reportBtn.frame = CGRectMake(20, 1780, screenW - 40, 30);

        }];
    }
    else
    {
        [UIView animateWithDuration:0.3 animations:^{
            if (self.longPress == 2)
            {
                scrollM.contentSize = CGSizeMake(screenW, 1600);
                reportBtn.frame = CGRectMake(20, 1415, screenW - 40, 30);
            }
            else
            {
                scrollM.contentSize = CGSizeMake(screenW, 1800);
                photosCollectionView.frame = CGRectMake(20, 1400, screenW - 40, 160);
                reportBtn.frame = CGRectMake(20, 1575, screenW - 40, 30);
            }
            reportTypeTableview.frame = CGRectMake(20, 130, screenW - 40, 40);
            informationTypeLabel.frame = CGRectMake(36, 175, screenW - 56, 30);
            ImageView3.frame = CGRectMake(20, 185, 8, 8);
            informationTypeBtn.frame = CGRectMake(20, 210, screenW - 40, 40);
            informationTypeTableview.frame = CGRectMake(20, 210, screenW - 40, 40);
            clueTypeLabel.frame = CGRectMake(36, 255, screenW - 56, 30);
            ImageView4.frame = CGRectMake(20, 265, 8, 8);
            kindSelect.frame = CGRectMake(20, 290, screenW - 40, 40);
            tableV.frame = CGRectMake(20, 290, screenW - 40, 40);
            neirongLabel.frame = CGRectMake(36, 335, screenW - 56, 30);
            ImageView5.frame = CGRectMake(20, 345, 8, 8);
            neirongTextview.frame = CGRectMake(20, 370, screenW - 40, 70);
            labelRecheck.frame = CGRectMake(36, 445, screenW - 56, 30);
            ImageView6.frame = CGRectMake(20, 455, 8, 8);
            recheckTextView.frame = CGRectMake(20, 480, screenW - 40, 40);
            labelApprove.frame = CGRectMake(36, 525, screenW - 56, 30);
            ImageView7.frame = CGRectMake(20, 535, 8, 8);
            approveTextView.frame = CGRectMake(20, 560, screenW - 40, 40);
            websiteTypeLabel.frame = CGRectMake(20, 605, screenW - 40, 30);
            websiteTyoeBtn.frame = CGRectMake(20, 640, screenW - 40, 40);
            websiteTypeTableview.frame = CGRectMake(20, 640, screenW - 40, 40);
            geographyTypeLable.frame = CGRectMake(20, 685, screenW - 40, 30);
            geographyTypeBtn.frame = CGRectMake(20, 720, screenW - 40, 40);
            geographyTypeTableview.frame = CGRectMake(20, 720, screenW - 40, 40);
            activityTypeLabel.frame = CGRectMake(20, 765, screenW - 40, 30);
            activityTypeBtn.frame = CGRectMake(20, 800, screenW - 40, 40);
            activityTypeTableview.frame = CGRectMake(20, 800, screenW - 40, 40);
            informationLevelLabel.frame = CGRectMake(20, 845, screenW - 40, 30);
            informationLevelBtn.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationLevelTableview.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationRegionLabel.frame = CGRectMake(20, 925, screenW - 40, 30);
            informationRegionBtn.frame = CGRectMake(20, 960, screenW - 40, 40);
            informationRegionTableview.frame = CGRectMake(20, 960, screenW - 40, 40);
            mainWordLabel.frame = CGRectMake(20, 1005, screenW - 40, 30);
            mainWordBtn.frame = CGRectMake(20, 1040, screenW - 40, 40);
            mainWordTableview.frame = CGRectMake(20, 1040, screenW - 40, 40);
            secondWordLabel.frame = CGRectMake(20, 1085, screenW - 40, 30);
            secondWordBtn.frame = CGRectMake(20, 1120, screenW - 40, 40);
            secondWordTableview.frame = CGRectMake(20, 1120, screenW - 40, 40);
            workAskLabel.frame = CGRectMake(20, 1165, screenW - 40, 30);
            workAskTextview.frame = CGRectMake(20, 1200, screenW - 40, 70);
            describeLabel.frame = CGRectMake(20, 1275, screenW - 40, 30);
            describeTextview.frame = CGRectMake(20, 1310, screenW - 40, 70);
//            photosCollectionView.frame = CGRectMake(20, 1400, screenW - 40, 160);
//            reportBtn.frame = CGRectMake(20, 1575, screenW - 40, 30);
        }];
    }
    if(kindSelect.selected)
    {
        kindSelect.selected = !kindSelect.selected;
    }
    if(reportTypeBtn.selected)
    {
        reportTypeBtn.selected = !reportTypeBtn.selected;
    }
    if(informationTypeBtn.selected)
    {
        informationTypeBtn.selected = !informationTypeBtn.selected;
    }
    if(websiteTyoeBtn.selected)
    {
        websiteTyoeBtn.selected = !websiteTyoeBtn.selected;
    }
    if(geographyTypeBtn.selected)
    {
        geographyTypeBtn.selected = !geographyTypeBtn.selected;
    }
    if(activityTypeBtn.selected)
    {
        activityTypeBtn.selected = !activityTypeBtn.selected;
    }
    if(informationLevelBtn.selected)
    {
        informationLevelBtn.selected = !informationLevelBtn.selected;
    }
    if(informationRegionBtn.selected)
    {
        informationRegionBtn.selected = !informationRegionBtn.selected;
    }
    mainWordBtn.selected = !mainWordBtn.selected;
    if(secondWordBtn.selected)
    {
        secondWordBtn.selected = !secondWordBtn.selected;
    }
}

#pragma mark - 信息归属地按钮点击
-(void)InformationRegionBtnClick
{
    if(!informationRegionBtn.isSelected)
    {
        [UIView animateWithDuration:0.3 animations:^{
            if (self.longPress == 2)
            {
                scrollM.contentSize = CGSizeMake(screenW, 1650);
                reportBtn.frame = CGRectMake(20, 1495, screenW - 40, 30);
            }
            else
            {
                scrollM.contentSize = CGSizeMake(screenW, 1800);
                photosCollectionView.frame = CGRectMake(20, 1480, screenW - 40, 160);
                reportBtn.frame = CGRectMake(20, 1655, screenW - 40, 30);
            }
            reportTypeTableview.frame = CGRectMake(20, 130, screenW - 40, 40);
            informationTypeLabel.frame = CGRectMake(36, 175, screenW - 56, 30);
            ImageView3.frame = CGRectMake(20, 185, 8, 8);
            informationTypeBtn.frame = CGRectMake(20, 210, screenW - 40, 40);
            informationTypeTableview.frame = CGRectMake(20, 210, screenW - 40, 40);
            clueTypeLabel.frame = CGRectMake(36, 255, screenW - 56, 30);
            ImageView4.frame = CGRectMake(20, 265, 8, 8);
            kindSelect.frame = CGRectMake(20, 290, screenW - 40, 40);
            tableV.frame = CGRectMake(20, 290, screenW - 40, 40);
            neirongLabel.frame = CGRectMake(36, 335, screenW - 56, 30);
            ImageView5.frame = CGRectMake(20, 345, 8, 8);
            neirongTextview.frame = CGRectMake(20, 370, screenW - 40, 70);
            labelRecheck.frame = CGRectMake(36, 445, screenW - 56, 30);
            ImageView6.frame = CGRectMake(20, 455, 8, 8);
            recheckTextView.frame = CGRectMake(20, 480, screenW - 40, 40);
            labelApprove.frame = CGRectMake(36, 525, screenW - 56, 30);
            ImageView7.frame = CGRectMake(20, 535, 8, 8);
            approveTextView.frame = CGRectMake(20, 560, screenW - 40, 40);
            websiteTypeLabel.frame = CGRectMake(20, 605, screenW - 40, 30);
            websiteTyoeBtn.frame = CGRectMake(20, 640, screenW - 40, 40);
            websiteTypeTableview.frame = CGRectMake(20, 640, screenW - 40, 40);
            geographyTypeLable.frame = CGRectMake(20, 685, screenW - 40, 30);
            geographyTypeBtn.frame = CGRectMake(20, 720, screenW - 40, 40);
            geographyTypeTableview.frame = CGRectMake(20, 720, screenW - 40, 40);
            activityTypeLabel.frame = CGRectMake(20, 765, screenW - 40, 30);
            activityTypeBtn.frame = CGRectMake(20, 800, screenW - 40, 40);
            activityTypeTableview.frame = CGRectMake(20, 800, screenW - 40, 40);
            informationLevelLabel.frame = CGRectMake(20, 845, screenW - 40, 30);
            informationLevelBtn.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationLevelTableview.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationRegionLabel.frame = CGRectMake(20, 925, screenW - 40, 30);
            informationRegionBtn.frame = CGRectMake(20, 960, screenW - 40, 40);
            informationRegionTableview.frame = CGRectMake(20, 1005, screenW - 40, 80);
            mainWordLabel.frame = CGRectMake(20, 1090, screenW - 40, 30);
            mainWordBtn.frame = CGRectMake(20, 1120, screenW - 40, 40);
            mainWordTableview.frame = CGRectMake(20, 1120, screenW - 40, 40);
            secondWordLabel.frame = CGRectMake(20, 1165, screenW - 40, 30);
            secondWordBtn.frame = CGRectMake(20, 1200, screenW - 40, 40);
            secondWordTableview.frame = CGRectMake(20, 1200, screenW - 40, 40);
            workAskLabel.frame = CGRectMake(20, 1245, screenW - 40, 30);
            workAskTextview.frame = CGRectMake(20, 1280, screenW - 40, 70);
            describeLabel.frame = CGRectMake(20, 1355, screenW - 40, 30);
            describeTextview.frame = CGRectMake(20, 1390, screenW - 40, 70);
//            photosCollectionView.frame = CGRectMake(20, 1480, screenW - 40, 160);
//            reportBtn.frame = CGRectMake(20, 1655, screenW - 40, 30);
        }];
    }
    else
    {
        [UIView animateWithDuration:0.3 animations:^{
            if (self.longPress == 2)
            {
                scrollM.contentSize = CGSizeMake(screenW, 1600);
                reportBtn.frame = CGRectMake(20, 1415, screenW - 40, 30);
            }
            else
            {
                scrollM.contentSize = CGSizeMake(screenW, 1800);
                photosCollectionView.frame = CGRectMake(20, 1400, screenW - 40, 160);
                reportBtn.frame = CGRectMake(20, 1575, screenW - 40, 30);
            }
            reportTypeTableview.frame = CGRectMake(20, 130, screenW - 40, 40);
            informationTypeLabel.frame = CGRectMake(36, 175, screenW - 56, 30);
            ImageView3.frame = CGRectMake(20, 185, 8, 8);
            informationTypeBtn.frame = CGRectMake(20, 210, screenW - 40, 40);
            informationTypeTableview.frame = CGRectMake(20, 210, screenW - 40, 40);
            clueTypeLabel.frame = CGRectMake(36, 255, screenW - 56, 30);
            ImageView4.frame = CGRectMake(20, 265, 8, 8);
            kindSelect.frame = CGRectMake(20, 290, screenW - 40, 40);
            tableV.frame = CGRectMake(20, 290, screenW - 40, 40);
            neirongLabel.frame = CGRectMake(36, 335, screenW - 56, 30);
            ImageView5.frame = CGRectMake(20, 345, 8, 8);
            neirongTextview.frame = CGRectMake(20, 370, screenW - 40, 70);
            labelRecheck.frame = CGRectMake(36, 445, screenW - 56, 30);
            ImageView6.frame = CGRectMake(20, 455, 8, 8);
            recheckTextView.frame = CGRectMake(20, 480, screenW - 40, 40);
            labelApprove.frame = CGRectMake(36, 525, screenW - 56, 30);
            ImageView7.frame = CGRectMake(20, 535, 8, 8);
            approveTextView.frame = CGRectMake(20, 560, screenW - 40, 40);
            websiteTypeLabel.frame = CGRectMake(20, 605, screenW - 40, 30);
            websiteTyoeBtn.frame = CGRectMake(20, 640, screenW - 40, 40);
            websiteTypeTableview.frame = CGRectMake(20, 640, screenW - 40, 40);
            geographyTypeLable.frame = CGRectMake(20, 685, screenW - 40, 30);
            geographyTypeBtn.frame = CGRectMake(20, 720, screenW - 40, 40);
            geographyTypeTableview.frame = CGRectMake(20, 720, screenW - 40, 40);
            activityTypeLabel.frame = CGRectMake(20, 765, screenW - 40, 30);
            activityTypeBtn.frame = CGRectMake(20, 800, screenW - 40, 40);
            activityTypeTableview.frame = CGRectMake(20, 800, screenW - 40, 40);
            informationLevelLabel.frame = CGRectMake(20, 845, screenW - 40, 30);
            informationLevelBtn.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationLevelTableview.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationRegionLabel.frame = CGRectMake(20, 925, screenW - 40, 30);
            informationRegionBtn.frame = CGRectMake(20, 960, screenW - 40, 40);
            informationRegionTableview.frame = CGRectMake(20, 960, screenW - 40, 40);
            mainWordLabel.frame = CGRectMake(20, 1005, screenW - 40, 30);
            mainWordBtn.frame = CGRectMake(20, 1040, screenW - 40, 40);
            mainWordTableview.frame = CGRectMake(20, 1040, screenW - 40, 40);
            secondWordLabel.frame = CGRectMake(20, 1085, screenW - 40, 30);
            secondWordBtn.frame = CGRectMake(20, 1120, screenW - 40, 40);
            secondWordTableview.frame = CGRectMake(20, 1120, screenW - 40, 40);
            workAskLabel.frame = CGRectMake(20, 1165, screenW - 40, 30);
            workAskTextview.frame = CGRectMake(20, 1200, screenW - 40, 70);
            describeLabel.frame = CGRectMake(20, 1275, screenW - 40, 30);
            describeTextview.frame = CGRectMake(20, 1310, screenW - 40, 70);
//            photosCollectionView.frame = CGRectMake(20, 1400, screenW - 40, 160);
//            reportBtn.frame = CGRectMake(20, 1575, screenW - 40, 30);
        }];
    }
    if(kindSelect.selected)
    {
        kindSelect.selected = !kindSelect.selected;
    }
    if(reportTypeBtn.selected)
    {
        reportTypeBtn.selected = !reportTypeBtn.selected;
    }
    if(informationTypeBtn.selected)
    {
        informationTypeBtn.selected = !informationTypeBtn.selected;
    }
    if(websiteTyoeBtn.selected)
    {
        websiteTyoeBtn.selected = !websiteTyoeBtn.selected;
    }
    if(geographyTypeBtn.selected)
    {
        geographyTypeBtn.selected = !geographyTypeBtn.selected;
    }
    if(activityTypeBtn.selected)
    {
        activityTypeBtn.selected = !activityTypeBtn.selected;
    }
    if(informationLevelBtn.selected)
    {
        informationLevelBtn.selected = !informationLevelBtn.selected;
    }
    informationRegionBtn.selected = !informationRegionBtn.selected;
    if(mainWordBtn.selected)
    {
        mainWordBtn.selected = !mainWordBtn.selected;
    }
    if(secondWordBtn.selected)
    {
        secondWordBtn.selected = !secondWordBtn.selected;
    }
}

#pragma mark - 信息等级按钮点击
-(void)InformationLevelBtnClick
{
    if(!informationLevelBtn.isSelected)
    {
        [UIView animateWithDuration:0.3 animations:^{
            if (self.longPress == 2)
            {
                scrollM.contentSize = CGSizeMake(screenW, 1800);
                reportBtn.frame = CGRectMake(20, 1620, screenW - 40, 30);
            }
            else
            {
                scrollM.contentSize = CGSizeMake(screenW, 2000);
                photosCollectionView.frame = CGRectMake(20, 1605, screenW - 40, 160);
                reportBtn.frame = CGRectMake(20, 1780, screenW - 40, 30);
            }
            reportTypeTableview.frame = CGRectMake(20, 130, screenW - 40, 40);
            informationTypeLabel.frame = CGRectMake(36, 175, screenW - 56, 30);
            ImageView3.frame = CGRectMake(20, 185, 8, 8);
            informationTypeBtn.frame = CGRectMake(20, 210, screenW - 40, 40);
            informationTypeTableview.frame = CGRectMake(20, 210, screenW - 40, 40);
            clueTypeLabel.frame = CGRectMake(36, 255, screenW - 56, 30);
            ImageView4.frame = CGRectMake(20, 265, 8, 8);
            kindSelect.frame = CGRectMake(20, 290, screenW - 40, 40);
            tableV.frame = CGRectMake(20, 290, screenW - 40, 40);
            neirongLabel.frame = CGRectMake(36, 335, screenW - 56, 30);
            ImageView5.frame = CGRectMake(20, 345, 8, 8);
            neirongTextview.frame = CGRectMake(20, 370, screenW - 40, 70);
            labelRecheck.frame = CGRectMake(36, 445, screenW - 56, 30);
            ImageView6.frame = CGRectMake(20, 455, 8, 8);
            recheckTextView.frame = CGRectMake(20, 480, screenW - 40, 40);
            labelApprove.frame = CGRectMake(36, 525, screenW - 56, 30);
            ImageView7.frame = CGRectMake(20, 535, 8, 8);
            approveTextView.frame = CGRectMake(20, 560, screenW - 40, 40);
            websiteTypeLabel.frame = CGRectMake(20, 605, screenW - 40, 30);
            websiteTyoeBtn.frame = CGRectMake(20, 640, screenW - 40, 40);
            websiteTypeTableview.frame = CGRectMake(20, 640, screenW - 40, 40);
            geographyTypeLable.frame = CGRectMake(20, 685, screenW - 40, 30);
            geographyTypeBtn.frame = CGRectMake(20, 720, screenW - 40, 40);
            geographyTypeTableview.frame = CGRectMake(20, 720, screenW - 40, 40);
            activityTypeLabel.frame = CGRectMake(20, 765, screenW - 40, 30);
            activityTypeBtn.frame = CGRectMake(20, 800, screenW - 40, 40);
            activityTypeTableview.frame = CGRectMake(20, 800, screenW - 40, 40);
            informationLevelLabel.frame = CGRectMake(20, 845, screenW - 40, 30);
            informationLevelBtn.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationLevelTableview.frame = CGRectMake(20, 925, screenW - 40, 200);
            informationRegionLabel.frame = CGRectMake(20, 1130, screenW - 40, 30);
            informationRegionBtn.frame = CGRectMake(20, 1165, screenW - 40, 40);
            informationRegionTableview.frame = CGRectMake(20, 1165, screenW - 40, 40);
            mainWordLabel.frame = CGRectMake(20, 1210, screenW - 40, 30);
            mainWordBtn.frame = CGRectMake(20, 1245, screenW - 40, 40);
            mainWordTableview.frame = CGRectMake(20, 1245, screenW - 40, 40);
            secondWordLabel.frame = CGRectMake(20, 1290, screenW - 40, 30);
            secondWordBtn.frame = CGRectMake(20, 1325, screenW - 40, 40);
            secondWordTableview.frame = CGRectMake(20, 1325, screenW - 40, 40);
            workAskLabel.frame = CGRectMake(20, 1370, screenW - 40, 30);
            workAskTextview.frame = CGRectMake(20, 1405, screenW - 40, 70);
            describeLabel.frame = CGRectMake(20, 1480, screenW - 40, 30);
            describeTextview.frame = CGRectMake(20, 1515, screenW - 40, 70);
//            photosCollectionView.frame = CGRectMake(20, 1605, screenW - 40, 160);
//            reportBtn.frame = CGRectMake(20, 1780, screenW - 40, 30);
        }];
    }
    else
    {
        [UIView animateWithDuration:0.3 animations:^{
            if (self.longPress == 2)
            {
                scrollM.contentSize = CGSizeMake(screenW, 1600);
                reportBtn.frame = CGRectMake(20, 1415, screenW - 40, 30);
            }
            else
            {
                scrollM.contentSize = CGSizeMake(screenW, 1800);
                photosCollectionView.frame = CGRectMake(20, 1400, screenW - 40, 160);
                reportBtn.frame = CGRectMake(20, 1575, screenW - 40, 30);
            }
            reportTypeTableview.frame = CGRectMake(20, 130, screenW - 40, 40);
            informationTypeLabel.frame = CGRectMake(36, 175, screenW - 56, 30);
            ImageView3.frame = CGRectMake(20, 185, 8, 8);
            informationTypeBtn.frame = CGRectMake(20, 210, screenW - 40, 40);
            informationTypeTableview.frame = CGRectMake(20, 210, screenW - 40, 40);
            clueTypeLabel.frame = CGRectMake(36, 255, screenW - 56, 30);
            ImageView4.frame = CGRectMake(20, 265, 8, 8);
            kindSelect.frame = CGRectMake(20, 290, screenW - 40, 40);
            tableV.frame = CGRectMake(20, 290, screenW - 40, 40);
            neirongLabel.frame = CGRectMake(36, 335, screenW - 56, 30);
            ImageView5.frame = CGRectMake(20, 345, 8, 8);
            neirongTextview.frame = CGRectMake(20, 370, screenW - 40, 70);
            labelRecheck.frame = CGRectMake(36, 445, screenW - 56, 30);
            ImageView6.frame = CGRectMake(20, 455, 8, 8);
            recheckTextView.frame = CGRectMake(20, 480, screenW - 40, 40);
            labelApprove.frame = CGRectMake(36, 525, screenW - 56, 30);
            ImageView7.frame = CGRectMake(20, 535, 8, 8);
            approveTextView.frame = CGRectMake(20, 560, screenW - 40, 40);
            websiteTypeLabel.frame = CGRectMake(20, 605, screenW - 40, 30);
            websiteTyoeBtn.frame = CGRectMake(20, 640, screenW - 40, 40);
            websiteTypeTableview.frame = CGRectMake(20, 640, screenW - 40, 40);
            geographyTypeLable.frame = CGRectMake(20, 685, screenW - 40, 30);
            geographyTypeBtn.frame = CGRectMake(20, 720, screenW - 40, 40);
            geographyTypeTableview.frame = CGRectMake(20, 720, screenW - 40, 40);
            activityTypeLabel.frame = CGRectMake(20, 765, screenW - 40, 30);
            activityTypeBtn.frame = CGRectMake(20, 800, screenW - 40, 40);
            activityTypeTableview.frame = CGRectMake(20, 800, screenW - 40, 40);
            informationLevelLabel.frame = CGRectMake(20, 845, screenW - 40, 30);
            informationLevelBtn.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationLevelTableview.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationRegionLabel.frame = CGRectMake(20, 925, screenW - 40, 30);
            informationRegionBtn.frame = CGRectMake(20, 960, screenW - 40, 40);
            informationRegionTableview.frame = CGRectMake(20, 960, screenW - 40, 40);
            mainWordLabel.frame = CGRectMake(20, 1005, screenW - 40, 30);
            mainWordBtn.frame = CGRectMake(20, 1040, screenW - 40, 40);
            mainWordTableview.frame = CGRectMake(20, 1040, screenW - 40, 40);
            secondWordLabel.frame = CGRectMake(20, 1085, screenW - 40, 30);
            secondWordBtn.frame = CGRectMake(20, 1120, screenW - 40, 40);
            secondWordTableview.frame = CGRectMake(20, 1120, screenW - 40, 40);
            workAskLabel.frame = CGRectMake(20, 1165, screenW - 40, 30);
            workAskTextview.frame = CGRectMake(20, 1200, screenW - 40, 70);
            describeLabel.frame = CGRectMake(20, 1275, screenW - 40, 30);
            describeTextview.frame = CGRectMake(20, 1310, screenW - 40, 70);
//            photosCollectionView.frame = CGRectMake(20, 1400, screenW - 40, 160);
//            reportBtn.frame = CGRectMake(20, 1575, screenW - 40, 30);
        }];
    }
    if(kindSelect.selected)
    {
        kindSelect.selected = !kindSelect.selected;
    }
    if(reportTypeBtn.selected)
    {
        reportTypeBtn.selected = !reportTypeBtn.selected;
    }
    if(informationTypeBtn.selected)
    {
        informationTypeBtn.selected = !informationTypeBtn.selected;
    }
    if(websiteTyoeBtn.selected)
    {
        websiteTyoeBtn.selected = !websiteTyoeBtn.selected;
    }
    if(geographyTypeBtn.selected)
    {
        geographyTypeBtn.selected = !geographyTypeBtn.selected;
    }
    if(activityTypeBtn.selected)
    {
        activityTypeBtn.selected = !activityTypeBtn.selected;
    }
    informationLevelBtn.selected = !informationLevelBtn.selected;
    if(informationRegionBtn.selected)
    {
        informationRegionBtn.selected = !informationRegionBtn.selected;
    }
    if(mainWordBtn.selected)
    {
        mainWordBtn.selected = !mainWordBtn.selected;
    }
    if(secondWordBtn.selected)
    {
        secondWordBtn.selected = !secondWordBtn.selected;
    }
}

#pragma mark - 活动类型按钮点击
-(void)ActivityTypeBtnClick
{
    if(!activityTypeBtn.isSelected)
    {
        [UIView animateWithDuration:0.3 animations:^{
            if (self.longPress == 2)
            {
                scrollM.contentSize = CGSizeMake(screenW, 1800);
                reportBtn.frame = CGRectMake(20, 1620, screenW - 40, 30);
            }
            else
            {
                scrollM.contentSize = CGSizeMake(screenW, 2000);
                photosCollectionView.frame = CGRectMake(20, 1605, screenW - 40, 160);
                reportBtn.frame = CGRectMake(20, 1780, screenW - 40, 30);
            }
            reportTypeTableview.frame = CGRectMake(20, 130, screenW - 40, 40);
            informationTypeLabel.frame = CGRectMake(36, 175, screenW - 56, 30);
            ImageView3.frame = CGRectMake(20, 185, 8, 8);
            informationTypeBtn.frame = CGRectMake(20, 210, screenW - 40, 40);
            informationTypeTableview.frame = CGRectMake(20, 210, screenW - 40, 40);
            clueTypeLabel.frame = CGRectMake(36, 255, screenW - 56, 30);
            ImageView4.frame = CGRectMake(20, 265, 8, 8);
            kindSelect.frame = CGRectMake(20, 290, screenW - 40, 40);
            tableV.frame = CGRectMake(20, 290, screenW - 40, 40);
            neirongLabel.frame = CGRectMake(36, 335, screenW - 56, 30);
            ImageView5.frame = CGRectMake(20, 345, 8, 8);
            neirongTextview.frame = CGRectMake(20, 370, screenW - 40, 70);
            labelRecheck.frame = CGRectMake(36, 445, screenW - 56, 30);
            ImageView6.frame = CGRectMake(20, 455, 8, 8);
            recheckTextView.frame = CGRectMake(20, 480, screenW - 40, 40);
            labelApprove.frame = CGRectMake(36, 525, screenW - 56, 30);
            ImageView7.frame = CGRectMake(20, 535, 8, 8);
            approveTextView.frame = CGRectMake(20, 560, screenW - 40, 40);
            websiteTypeLabel.frame = CGRectMake(20, 605, screenW - 40, 30);
            websiteTyoeBtn.frame = CGRectMake(20, 640, screenW - 40, 40);
            websiteTypeTableview.frame = CGRectMake(20, 640, screenW - 40, 40);
            geographyTypeLable.frame = CGRectMake(20, 685, screenW - 40, 30);
            geographyTypeBtn.frame = CGRectMake(20, 720, screenW - 40, 40);
            geographyTypeTableview.frame = CGRectMake(20, 720, screenW - 40, 40);
            activityTypeLabel.frame = CGRectMake(20, 765, screenW - 40, 30);
            activityTypeBtn.frame = CGRectMake(20, 800, screenW - 40, 40);
            activityTypeTableview.frame = CGRectMake(20, 845, screenW - 40, 200);
            informationLevelLabel.frame = CGRectMake(20, 1050, screenW - 40, 30);
            informationLevelBtn.frame = CGRectMake(20, 1085, screenW - 40, 40);
            informationLevelTableview.frame = CGRectMake(20, 1085, screenW - 40, 40);
            informationRegionLabel.frame = CGRectMake(20, 1130, screenW - 40, 30);
            informationRegionBtn.frame = CGRectMake(20, 1165, screenW - 40, 40);
            informationRegionTableview.frame = CGRectMake(20, 1165, screenW - 40, 40);
            mainWordLabel.frame = CGRectMake(20, 1210, screenW - 40, 30);
            mainWordBtn.frame = CGRectMake(20, 1245, screenW - 40, 40);
            mainWordTableview.frame = CGRectMake(20, 1245, screenW - 40, 40);
            secondWordLabel.frame = CGRectMake(20, 1290, screenW - 40, 30);
            secondWordBtn.frame = CGRectMake(20, 1325, screenW - 40, 40);
            secondWordTableview.frame = CGRectMake(20, 1325, screenW - 40, 40);
            workAskLabel.frame = CGRectMake(20, 1370, screenW - 40, 30);
            workAskTextview.frame = CGRectMake(20, 1405, screenW - 40, 70);
            describeLabel.frame = CGRectMake(20, 1480, screenW - 40, 30);
            describeTextview.frame = CGRectMake(20, 1515, screenW - 40, 70);
//            photosCollectionView.frame = CGRectMake(20, 1605, screenW - 40, 160);
//            reportBtn.frame = CGRectMake(20, 1780, screenW - 40, 30);
        }];
    }
    else
    {
        [UIView animateWithDuration:0.3 animations:^{
            if (self.longPress == 2)
            {
                scrollM.contentSize = CGSizeMake(screenW, 1600);
                reportBtn.frame = CGRectMake(20, 1415, screenW - 40, 30);
            }
            else
            {
                scrollM.contentSize = CGSizeMake(screenW, 1800);
                photosCollectionView.frame = CGRectMake(20, 1400, screenW - 40, 160);
                reportBtn.frame = CGRectMake(20, 1575, screenW - 40, 30);
            }
            reportTypeTableview.frame = CGRectMake(20, 130, screenW - 40, 40);
            informationTypeLabel.frame = CGRectMake(36, 175, screenW - 56, 30);
            ImageView3.frame = CGRectMake(20, 185, 8, 8);
            informationTypeBtn.frame = CGRectMake(20, 210, screenW - 40, 40);
            informationTypeTableview.frame = CGRectMake(20, 210, screenW - 40, 40);
            clueTypeLabel.frame = CGRectMake(36, 255, screenW - 56, 30);
            ImageView4.frame = CGRectMake(20, 265, 8, 8);
            kindSelect.frame = CGRectMake(20, 290, screenW - 40, 40);
            tableV.frame = CGRectMake(20, 290, screenW - 40, 40);
            neirongLabel.frame = CGRectMake(36, 335, screenW - 56, 30);
            ImageView5.frame = CGRectMake(20, 345, 8, 8);
            neirongTextview.frame = CGRectMake(20, 370, screenW - 40, 70);
            labelRecheck.frame = CGRectMake(36, 445, screenW - 56, 30);
            ImageView6.frame = CGRectMake(20, 455, 8, 8);
            recheckTextView.frame = CGRectMake(20, 480, screenW - 40, 40);
            labelApprove.frame = CGRectMake(36, 525, screenW - 56, 30);
            ImageView7.frame = CGRectMake(20, 535, 8, 8);
            approveTextView.frame = CGRectMake(20, 560, screenW - 40, 40);
            websiteTypeLabel.frame = CGRectMake(20, 605, screenW - 40, 30);
            websiteTyoeBtn.frame = CGRectMake(20, 640, screenW - 40, 40);
            websiteTypeTableview.frame = CGRectMake(20, 640, screenW - 40, 40);
            geographyTypeLable.frame = CGRectMake(20, 685, screenW - 40, 30);
            geographyTypeBtn.frame = CGRectMake(20, 720, screenW - 40, 40);
            geographyTypeTableview.frame = CGRectMake(20, 720, screenW - 40, 40);
            activityTypeLabel.frame = CGRectMake(20, 765, screenW - 40, 30);
            activityTypeBtn.frame = CGRectMake(20, 800, screenW - 40, 40);
            activityTypeTableview.frame = CGRectMake(20, 800, screenW - 40, 40);
            informationLevelLabel.frame = CGRectMake(20, 845, screenW - 40, 30);
            informationLevelBtn.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationLevelTableview.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationRegionLabel.frame = CGRectMake(20, 925, screenW - 40, 30);
            informationRegionBtn.frame = CGRectMake(20, 960, screenW - 40, 40);
            informationRegionTableview.frame = CGRectMake(20, 960, screenW - 40, 40);
            mainWordLabel.frame = CGRectMake(20, 1005, screenW - 40, 30);
            mainWordBtn.frame = CGRectMake(20, 1040, screenW - 40, 40);
            mainWordTableview.frame = CGRectMake(20, 1040, screenW - 40, 40);
            secondWordLabel.frame = CGRectMake(20, 1085, screenW - 40, 30);
            secondWordBtn.frame = CGRectMake(20, 1120, screenW - 40, 40);
            secondWordTableview.frame = CGRectMake(20, 1120, screenW - 40, 40);
            workAskLabel.frame = CGRectMake(20, 1165, screenW - 40, 30);
            workAskTextview.frame = CGRectMake(20, 1200, screenW - 40, 70);
            describeLabel.frame = CGRectMake(20, 1275, screenW - 40, 30);
            describeTextview.frame = CGRectMake(20, 1310, screenW - 40, 70);
//            photosCollectionView.frame = CGRectMake(20, 1400, screenW - 40, 160);
//            reportBtn.frame = CGRectMake(20, 1575, screenW - 40, 30);
        }];
    }
    if(kindSelect.selected)
    {
        kindSelect.selected = !kindSelect.selected;
    }
    if(reportTypeBtn.selected)
    {
        reportTypeBtn.selected = !reportTypeBtn.selected;
    }
    if(informationTypeBtn.selected)
    {
        informationTypeBtn.selected = !informationTypeBtn.selected;
    }
    if(websiteTyoeBtn.selected)
    {
        websiteTyoeBtn.selected = !websiteTyoeBtn.selected;
    }
    if(geographyTypeBtn.selected)
    {
        geographyTypeBtn.selected = !geographyTypeBtn.selected;
    }
    activityTypeBtn.selected = !activityTypeBtn.selected;
    if(informationLevelBtn.selected)
    {
        informationLevelBtn.selected = !informationLevelBtn.selected;
    }
    if(informationRegionBtn.selected)
    {
        informationRegionBtn.selected = !informationRegionBtn.selected;
    }
    if(mainWordBtn.selected)
    {
        mainWordBtn.selected = !mainWordBtn.selected;
    }
    if(secondWordBtn.selected)
    {
        secondWordBtn.selected = !secondWordBtn.selected;
    }
}

#pragma mark - 物理地域按钮点击
-(void)GeographyTypeBtnClick
{
    if(!geographyTypeBtn.isSelected)
    {
        [UIView animateWithDuration:0.3 animations:^{
            if (self.longPress == 2)
            {
                scrollM.contentSize = CGSizeMake(screenW, 1700);
                reportBtn.frame = CGRectMake(20, 1535, screenW - 40, 30);
            }
            else
            {
                scrollM.contentSize = CGSizeMake(screenW, 1900);
                photosCollectionView.frame = CGRectMake(20, 1520, screenW - 40, 160);
                reportBtn.frame = CGRectMake(20, 1695, screenW - 40, 30);
            }
            reportTypeTableview.frame = CGRectMake(20, 130, screenW - 40, 40);
            informationTypeLabel.frame = CGRectMake(36, 175, screenW - 56, 30);
            ImageView3.frame = CGRectMake(20, 185, 8, 8);
            informationTypeBtn.frame = CGRectMake(20, 210, screenW - 40, 40);
            informationTypeTableview.frame = CGRectMake(20, 210, screenW - 40, 40);
            clueTypeLabel.frame = CGRectMake(36, 255, screenW - 56, 30);
            ImageView4.frame = CGRectMake(20, 265, 8, 8);
            kindSelect.frame = CGRectMake(20, 290, screenW - 40, 40);
            tableV.frame = CGRectMake(20, 290, screenW - 40, 40);
            neirongLabel.frame = CGRectMake(36, 335, screenW - 56, 30);
            ImageView5.frame = CGRectMake(20, 345, 8, 8);
            neirongTextview.frame = CGRectMake(20, 370, screenW - 40, 70);
            labelRecheck.frame = CGRectMake(36, 445, screenW - 56, 30);
            ImageView6.frame = CGRectMake(20, 455, 8, 8);
            recheckTextView.frame = CGRectMake(20, 480, screenW - 40, 40);
            labelApprove.frame = CGRectMake(36, 525, screenW - 56, 30);
            ImageView7.frame = CGRectMake(20, 535, 8, 8);
            approveTextView.frame = CGRectMake(20, 560, screenW - 40, 40);
            websiteTypeLabel.frame = CGRectMake(20, 605, screenW - 40, 30);
            websiteTyoeBtn.frame = CGRectMake(20, 640, screenW - 40, 40);
            websiteTypeTableview.frame = CGRectMake(20, 640, screenW - 40, 40);
            geographyTypeLable.frame = CGRectMake(20, 685, screenW - 40, 30);
            geographyTypeBtn.frame = CGRectMake(20, 720, screenW - 40, 40);
            geographyTypeTableview.frame = CGRectMake(20, 765, screenW - 40, 120);
            activityTypeLabel.frame = CGRectMake(20, 890, screenW - 40, 30);
            activityTypeBtn.frame = CGRectMake(20, 925, screenW - 40, 40);
            activityTypeTableview.frame = CGRectMake(20, 925, screenW - 40, 40);
            informationLevelLabel.frame = CGRectMake(20, 970, screenW - 40, 30);
            informationLevelBtn.frame = CGRectMake(20, 1005, screenW - 40, 40);
            informationLevelTableview.frame = CGRectMake(20, 1005, screenW - 40, 40);
            informationRegionLabel.frame = CGRectMake(20, 1050, screenW - 40, 30);
            informationRegionBtn.frame = CGRectMake(20, 1080, screenW - 40, 40);
            informationRegionTableview.frame = CGRectMake(20, 1080, screenW - 40, 40);
            mainWordLabel.frame = CGRectMake(20, 1125, screenW - 40, 30);
            mainWordBtn.frame = CGRectMake(20, 1160, screenW - 40, 40);
            mainWordTableview.frame = CGRectMake(20, 1160, screenW - 40, 40);
            secondWordLabel.frame = CGRectMake(20, 1205, screenW - 40, 30);
            secondWordBtn.frame = CGRectMake(20, 1240, screenW - 40, 40);
            secondWordTableview.frame = CGRectMake(20, 1240, screenW - 40, 40);
            workAskLabel.frame = CGRectMake(20, 1285, screenW - 40, 30);
            workAskTextview.frame = CGRectMake(20, 1320, screenW - 40, 70);
            describeLabel.frame = CGRectMake(20, 1395, screenW - 40, 30);
            describeTextview.frame = CGRectMake(20, 1430, screenW - 40, 70);
//            photosCollectionView.frame = CGRectMake(20, 1520, screenW - 40, 160);
//            reportBtn.frame = CGRectMake(20, 1695, screenW - 40, 30);
        }];
    }
    else
    {
        [UIView animateWithDuration:0.3 animations:^{
            if (self.longPress == 2)
            {
                scrollM.contentSize = CGSizeMake(screenW, 1600);
                reportBtn.frame = CGRectMake(20, 1415, screenW - 40, 30);
            }
            else
            {
                scrollM.contentSize = CGSizeMake(screenW, 1800);
                photosCollectionView.frame = CGRectMake(20, 1400, screenW - 40, 160);
                reportBtn.frame = CGRectMake(20, 1575, screenW - 40, 30);
            }
            reportTypeTableview.frame = CGRectMake(20, 130, screenW - 40, 40);
            informationTypeLabel.frame = CGRectMake(36, 175, screenW - 56, 30);
            ImageView3.frame = CGRectMake(20, 185, 8, 8);
            informationTypeBtn.frame = CGRectMake(20, 210, screenW - 40, 40);
            informationTypeTableview.frame = CGRectMake(20, 210, screenW - 40, 40);
            clueTypeLabel.frame = CGRectMake(36, 255, screenW - 56, 30);
            ImageView4.frame = CGRectMake(20, 265, 8, 8);
            kindSelect.frame = CGRectMake(20, 290, screenW - 40, 40);
            tableV.frame = CGRectMake(20, 290, screenW - 40, 40);
            neirongLabel.frame = CGRectMake(36, 335, screenW - 56, 30);
            ImageView5.frame = CGRectMake(20, 345, 8, 8);
            neirongTextview.frame = CGRectMake(20, 370, screenW - 40, 70);
            labelRecheck.frame = CGRectMake(36, 445, screenW - 56, 30);
            ImageView6.frame = CGRectMake(20, 455, 8, 8);
            recheckTextView.frame = CGRectMake(20, 480, screenW - 40, 40);
            labelApprove.frame = CGRectMake(36, 525, screenW - 56, 30);
            ImageView7.frame = CGRectMake(20, 535, 8, 8);
            approveTextView.frame = CGRectMake(20, 560, screenW - 40, 40);
            websiteTypeLabel.frame = CGRectMake(20, 605, screenW - 40, 30);
            websiteTyoeBtn.frame = CGRectMake(20, 640, screenW - 40, 40);
            websiteTypeTableview.frame = CGRectMake(20, 640, screenW - 40, 40);
            geographyTypeLable.frame = CGRectMake(20, 685, screenW - 40, 30);
            geographyTypeBtn.frame = CGRectMake(20, 720, screenW - 40, 40);
            geographyTypeTableview.frame = CGRectMake(20, 720, screenW - 40, 40);
            activityTypeLabel.frame = CGRectMake(20, 765, screenW - 40, 30);
            activityTypeBtn.frame = CGRectMake(20, 800, screenW - 40, 40);
            activityTypeTableview.frame = CGRectMake(20, 800, screenW - 40, 40);
            informationLevelLabel.frame = CGRectMake(20, 845, screenW - 40, 30);
            informationLevelBtn.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationLevelTableview.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationRegionLabel.frame = CGRectMake(20, 925, screenW - 40, 30);
            informationRegionBtn.frame = CGRectMake(20, 960, screenW - 40, 40);
            informationRegionTableview.frame = CGRectMake(20, 960, screenW - 40, 40);
            mainWordLabel.frame = CGRectMake(20, 1005, screenW - 40, 30);
            mainWordBtn.frame = CGRectMake(20, 1040, screenW - 40, 40);
            mainWordTableview.frame = CGRectMake(20, 1040, screenW - 40, 40);
            secondWordLabel.frame = CGRectMake(20, 1085, screenW - 40, 30);
            secondWordBtn.frame = CGRectMake(20, 1120, screenW - 40, 40);
            secondWordTableview.frame = CGRectMake(20, 1120, screenW - 40, 40);
            workAskLabel.frame = CGRectMake(20, 1165, screenW - 40, 30);
            workAskTextview.frame = CGRectMake(20, 1200, screenW - 40, 70);
            describeLabel.frame = CGRectMake(20, 1275, screenW - 40, 30);
            describeTextview.frame = CGRectMake(20, 1310, screenW - 40, 70);
//            photosCollectionView.frame = CGRectMake(20, 1400, screenW - 40, 160);
//            reportBtn.frame = CGRectMake(20, 1575, screenW - 40, 30);
        }];
    }
    if(kindSelect.selected)
    {
        kindSelect.selected = !kindSelect.selected;
    }
    if(reportTypeBtn.selected)
    {
        reportTypeBtn.selected = !reportTypeBtn.selected;
    }
    if(informationTypeBtn.selected)
    {
        informationTypeBtn.selected = !informationTypeBtn.selected;
    }
    if(websiteTyoeBtn.selected)
    {
        websiteTyoeBtn.selected = !websiteTyoeBtn.selected;
    }
    geographyTypeBtn.selected = !geographyTypeBtn.selected;
    if(activityTypeBtn.selected)
    {
        activityTypeBtn.selected = !activityTypeBtn.selected;
    }
    if(informationLevelBtn.selected)
    {
        informationLevelBtn.selected = !informationLevelBtn.selected;
    }
    if(informationRegionBtn.selected)
    {
        informationRegionBtn.selected = !informationRegionBtn.selected;
    }
    if(mainWordBtn.selected)
    {
        mainWordBtn.selected = !mainWordBtn.selected;
    }
    if(secondWordBtn.selected)
    {
        secondWordBtn.selected = !secondWordBtn.selected;
    }
}

#pragma mark - 网站类型按钮点击
-(void)WebsiteTypeBtnClick
{
    if(!websiteTyoeBtn.isSelected)
    {
        [UIView animateWithDuration:0.3 animations:^{
            if (self.longPress == 2)
            {
                scrollM.contentSize = CGSizeMake(screenW, 1800);
                reportBtn.frame = CGRectMake(20, 1620, screenW - 40, 30);
            }
            else
            {
                scrollM.contentSize = CGSizeMake(screenW, 2000);
                photosCollectionView.frame = CGRectMake(20, 1605, screenW - 40, 160);
                reportBtn.frame = CGRectMake(20, 1780, screenW - 40, 30);
            }
            reportTypeTableview.frame = CGRectMake(20, 130, screenW - 40, 40);
            informationTypeLabel.frame = CGRectMake(36, 175, screenW - 56, 30);
            ImageView3.frame = CGRectMake(20, 185, 8, 8);
            informationTypeBtn.frame = CGRectMake(20, 210, screenW - 40, 40);
            informationTypeTableview.frame = CGRectMake(20, 210, screenW - 40, 40);
            clueTypeLabel.frame = CGRectMake(36, 255, screenW - 56, 30);
            ImageView4.frame = CGRectMake(20, 265, 8, 8);
            kindSelect.frame = CGRectMake(20, 290, screenW - 40, 40);
            tableV.frame = CGRectMake(20, 290, screenW - 40, 40);
            neirongLabel.frame = CGRectMake(36, 335, screenW - 56, 30);
            ImageView5.frame = CGRectMake(20, 345, 8, 8);
            neirongTextview.frame = CGRectMake(20, 370, screenW - 40, 70);
            labelRecheck.frame = CGRectMake(36, 445, screenW - 56, 30);
            ImageView6.frame = CGRectMake(20, 455, 8, 8);
            recheckTextView.frame = CGRectMake(20, 480, screenW - 40, 40);
            labelApprove.frame = CGRectMake(36, 525, screenW - 56, 30);
            ImageView7.frame = CGRectMake(20, 535, 8, 8);
            approveTextView.frame = CGRectMake(20, 560, screenW - 40, 40);
            websiteTypeLabel.frame = CGRectMake(20, 605, screenW - 40, 30);
            websiteTyoeBtn.frame = CGRectMake(20, 640, screenW - 40, 40);
            websiteTypeTableview.frame = CGRectMake(20, 685, screenW - 40, 200);
            geographyTypeLable.frame = CGRectMake(20, 890, screenW - 40, 30);
            geographyTypeBtn.frame = CGRectMake(20, 925, screenW - 40, 40);
            geographyTypeTableview.frame = CGRectMake(20, 925, screenW - 40, 40);
            activityTypeLabel.frame = CGRectMake(20, 970, screenW - 40, 30);
            activityTypeBtn.frame = CGRectMake(20, 1005, screenW - 40, 40);
            activityTypeTableview.frame = CGRectMake(20, 1005, screenW - 40, 40);
            informationLevelLabel.frame = CGRectMake(20, 1050, screenW - 40, 30);
            informationLevelBtn.frame = CGRectMake(20, 1085, screenW - 40, 40);
            informationLevelTableview.frame = CGRectMake(20, 1085, screenW - 40, 40);
            informationRegionLabel.frame = CGRectMake(20, 1130, screenW - 40, 30);
            informationRegionBtn.frame = CGRectMake(20, 1165, screenW - 40, 40);
            informationRegionTableview.frame = CGRectMake(20, 1165, screenW - 40, 40);
            mainWordLabel.frame = CGRectMake(20, 1210, screenW - 40, 30);
            mainWordBtn.frame = CGRectMake(20, 1245, screenW - 40, 40);
            mainWordTableview.frame = CGRectMake(20, 1245, screenW - 40, 40);
            secondWordLabel.frame = CGRectMake(20, 1290, screenW - 40, 30);
            secondWordBtn.frame = CGRectMake(20, 1325, screenW - 40, 40);
            secondWordTableview.frame = CGRectMake(20, 1325, screenW - 40, 40);
            workAskLabel.frame = CGRectMake(20, 1370, screenW - 40, 30);
            workAskTextview.frame = CGRectMake(20, 1405, screenW - 40, 70);
            describeLabel.frame = CGRectMake(20, 1480, screenW - 40, 30);
            describeTextview.frame = CGRectMake(20, 1515, screenW - 40, 70);
//            photosCollectionView.frame = CGRectMake(20, 1605, screenW - 40, 160);
//            reportBtn.frame = CGRectMake(20, 1780, screenW - 40, 30);
        }];
    }
    else
    {
        [UIView animateWithDuration:0.3 animations:^{
            if (self.longPress == 2)
            {
                scrollM.contentSize = CGSizeMake(screenW, 1600);
                reportBtn.frame = CGRectMake(20, 1415, screenW - 40, 30);
            }
            else
            {
                scrollM.contentSize = CGSizeMake(screenW, 1800);
                photosCollectionView.frame = CGRectMake(20, 1400, screenW - 40, 160);
                reportBtn.frame = CGRectMake(20, 1575, screenW - 40, 30);
            }
            reportTypeTableview.frame = CGRectMake(20, 130, screenW - 40, 40);
            informationTypeLabel.frame = CGRectMake(36, 175, screenW - 56, 30);
            ImageView3.frame = CGRectMake(20, 185, 8, 8);
            informationTypeBtn.frame = CGRectMake(20, 210, screenW - 40, 40);
            informationTypeTableview.frame = CGRectMake(20, 210, screenW - 40, 40);
            clueTypeLabel.frame = CGRectMake(36, 255, screenW - 56, 30);
            ImageView4.frame = CGRectMake(20, 265, 8, 8);
            kindSelect.frame = CGRectMake(20, 290, screenW - 40, 40);
            tableV.frame = CGRectMake(20, 290, screenW - 40, 40);
            neirongLabel.frame = CGRectMake(36, 335, screenW - 56, 30);
            ImageView5.frame = CGRectMake(20, 345, 8, 8);
            neirongTextview.frame = CGRectMake(20, 370, screenW - 40, 70);
            labelRecheck.frame = CGRectMake(36, 445, screenW - 56, 30);
            ImageView6.frame = CGRectMake(20, 455, 8, 8);
            recheckTextView.frame = CGRectMake(20, 480, screenW - 40, 40);
            labelApprove.frame = CGRectMake(36, 525, screenW - 56, 30);
            ImageView7.frame = CGRectMake(20, 535, 8, 8);
            approveTextView.frame = CGRectMake(20, 560, screenW - 40, 40);
            websiteTypeLabel.frame = CGRectMake(20, 605, screenW - 40, 30);
            websiteTyoeBtn.frame = CGRectMake(20, 640, screenW - 40, 40);
            websiteTypeTableview.frame = CGRectMake(20, 640, screenW - 40, 40);
            geographyTypeLable.frame = CGRectMake(20, 685, screenW - 40, 30);
            geographyTypeBtn.frame = CGRectMake(20, 720, screenW - 40, 40);
            geographyTypeTableview.frame = CGRectMake(20, 720, screenW - 40, 40);
            activityTypeLabel.frame = CGRectMake(20, 765, screenW - 40, 30);
            activityTypeBtn.frame = CGRectMake(20, 800, screenW - 40, 40);
            activityTypeTableview.frame = CGRectMake(20, 800, screenW - 40, 40);
            informationLevelLabel.frame = CGRectMake(20, 845, screenW - 40, 30);
            informationLevelBtn.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationLevelTableview.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationRegionLabel.frame = CGRectMake(20, 925, screenW - 40, 30);
            informationRegionBtn.frame = CGRectMake(20, 960, screenW - 40, 40);
            informationRegionTableview.frame = CGRectMake(20, 960, screenW - 40, 40);
            mainWordLabel.frame = CGRectMake(20, 1005, screenW - 40, 30);
            mainWordBtn.frame = CGRectMake(20, 1040, screenW - 40, 40);
            mainWordTableview.frame = CGRectMake(20, 1040, screenW - 40, 40);
            secondWordLabel.frame = CGRectMake(20, 1085, screenW - 40, 30);
            secondWordBtn.frame = CGRectMake(20, 1120, screenW - 40, 40);
            secondWordTableview.frame = CGRectMake(20, 1120, screenW - 40, 40);
            workAskLabel.frame = CGRectMake(20, 1165, screenW - 40, 30);
            workAskTextview.frame = CGRectMake(20, 1200, screenW - 40, 70);
            describeLabel.frame = CGRectMake(20, 1275, screenW - 40, 30);
            describeTextview.frame = CGRectMake(20, 1310, screenW - 40, 70);
//            photosCollectionView.frame = CGRectMake(20, 1400, screenW - 40, 160);
//            reportBtn.frame = CGRectMake(20, 1575, screenW - 40, 30);
        }];
    }
    if(kindSelect.selected)
    {
        kindSelect.selected = !kindSelect.selected;
    }
    if(reportTypeBtn.selected)
    {
        reportTypeBtn.selected = !reportTypeBtn.selected;
    }
    if(informationTypeBtn.selected)
    {
        informationTypeBtn.selected = !informationTypeBtn.selected;
    }
    websiteTyoeBtn.selected = !websiteTyoeBtn.selected;
    if(geographyTypeBtn.selected)
    {
        geographyTypeBtn.selected = !geographyTypeBtn.selected;
    }
    if(activityTypeBtn.selected)
    {
        activityTypeBtn.selected = !activityTypeBtn.selected;
    }
    if (informationLevelBtn.selected)
    {
        informationLevelBtn.selected = !informationLevelBtn.selected;
    }
    if(informationRegionBtn.selected)
    {
        informationRegionBtn.selected = !informationRegionBtn.selected;
    }
    if(mainWordBtn.selected)
    {
        mainWordBtn.selected = !mainWordBtn.selected;
    }
    if(secondWordBtn.selected)
    {
        secondWordBtn.selected = !secondWordBtn.selected;
    }
}

#pragma mark - 信息类别按钮点击
-(void)InformationTypeBtnClick
{
    if(!informationTypeBtn.isSelected)
    {
        [UIView animateWithDuration:0.3 animations:^{
            if (self.longPress == 2)
            {
                scrollM.contentSize = CGSizeMake(screenW, 1800);
                reportBtn.frame = CGRectMake(20, 1620, screenW - 40, 30);
            }
            else
            {
                scrollM.contentSize = CGSizeMake(screenW, 2000);
                photosCollectionView.frame = CGRectMake(20, 1605, screenW - 40, 160);
                reportBtn.frame = CGRectMake(20, 1780, screenW - 40, 30);
            }
            reportTypeTableview.frame = CGRectMake(20, 130, screenW - 40, 40);
            informationTypeLabel.frame = CGRectMake(36, 175, screenW - 56, 30);
            ImageView3.frame = CGRectMake(20, 185, 8, 8);
            informationTypeBtn.frame = CGRectMake(20, 210, screenW - 40, 40);
            informationTypeTableview.frame = CGRectMake(20, 255, screenW - 40, 200);
            clueTypeLabel.frame = CGRectMake(36, 460, screenW - 56, 30);
            ImageView4.frame = CGRectMake(20, 470, 8, 8);
            kindSelect.frame = CGRectMake(20, 495, screenW - 40, 40);
            tableV.frame = CGRectMake(20, 495, screenW - 40, 40);
            neirongLabel.frame = CGRectMake(36, 540, screenW - 56, 30);
            ImageView5.frame = CGRectMake(20, 550, 8, 8);
            neirongTextview.frame = CGRectMake(20, 575, screenW - 40, 70);
            labelRecheck.frame = CGRectMake(36, 650, screenW - 56, 30);
            ImageView6.frame = CGRectMake(20, 660, 8, 8);
            recheckTextView.frame = CGRectMake(20, 685, screenW - 40, 40);
            labelApprove.frame = CGRectMake(36, 730, screenW - 56, 30);
            ImageView7.frame = CGRectMake(20, 740, 8, 8);
            approveTextView.frame = CGRectMake(20, 765, screenW - 40, 40);
            websiteTypeLabel.frame = CGRectMake(20, 810, screenW - 40, 30);
            websiteTyoeBtn.frame = CGRectMake(20, 845, screenW - 40, 40);
            websiteTypeTableview.frame = CGRectMake(20, 845, screenW - 40, 40);
            geographyTypeLable.frame = CGRectMake(20, 890, screenW - 40, 30);
            geographyTypeBtn.frame = CGRectMake(20, 925, screenW - 40, 40);
            geographyTypeTableview.frame = CGRectMake(20, 925, screenW - 40, 40);
            activityTypeLabel.frame = CGRectMake(20, 970, screenW - 40, 30);
            activityTypeBtn.frame = CGRectMake(20, 1005, screenW - 40, 40);
            activityTypeTableview.frame = CGRectMake(20, 1005, screenW - 40, 40);
            informationLevelLabel.frame = CGRectMake(20, 1050, screenW - 40, 30);
            informationLevelBtn.frame = CGRectMake(20, 1085, screenW - 40, 40);
            informationLevelTableview.frame = CGRectMake(20, 1085, screenW - 40, 40);
            informationRegionLabel.frame = CGRectMake(20, 1130, screenW - 40, 30);
            informationRegionBtn.frame = CGRectMake(20, 1165, screenW - 40, 40);
            informationRegionTableview.frame = CGRectMake(20, 1165, screenW - 40, 40);
            mainWordLabel.frame = CGRectMake(20, 1210, screenW - 40, 30);
            mainWordBtn.frame = CGRectMake(20, 1245, screenW - 40, 40);
            mainWordTableview.frame = CGRectMake(20, 1245, screenW - 40, 40);
            secondWordLabel.frame = CGRectMake(20, 1290, screenW - 40, 30);
            secondWordBtn.frame = CGRectMake(20, 1325, screenW - 40, 40);
            secondWordTableview.frame = CGRectMake(20, 1325, screenW - 40, 40);
            workAskLabel.frame = CGRectMake(20, 1370, screenW - 40, 30);
            workAskTextview.frame = CGRectMake(20, 1405, screenW - 40, 70);
            describeLabel.frame = CGRectMake(20, 1480, screenW - 40, 30);
            describeTextview.frame = CGRectMake(20, 1515, screenW - 40, 70);
//            photosCollectionView.frame = CGRectMake(20, 1605, screenW - 40, 160);
//            reportBtn.frame = CGRectMake(20, 1780, screenW - 40, 30);
        }];
    }
    else
    {
        [UIView animateWithDuration:0.3 animations:^{
            if (self.longPress == 2)
            {
                scrollM.contentSize = CGSizeMake(screenW, 1600);
                reportBtn.frame = CGRectMake(20, 1415, screenW - 40, 30);
            }
            else
            {
                scrollM.contentSize = CGSizeMake(screenW, 1800);
                photosCollectionView.frame = CGRectMake(20, 1400, screenW - 40, 160);
                reportBtn.frame = CGRectMake(20, 1575, screenW - 40, 30);
            }
            reportTypeTableview.frame = CGRectMake(20, 130, screenW - 40, 40);
            informationTypeLabel.frame = CGRectMake(36, 175, screenW - 56, 30);
            ImageView3.frame = CGRectMake(20, 185, 8, 8);
            informationTypeBtn.frame = CGRectMake(20, 210, screenW - 40, 40);
            informationTypeTableview.frame = CGRectMake(20, 210, screenW - 40, 40);
            clueTypeLabel.frame = CGRectMake(36, 255, screenW - 56, 30);
            ImageView4.frame = CGRectMake(20, 265, 8, 8);
            kindSelect.frame = CGRectMake(20, 290, screenW - 40, 40);
            tableV.frame = CGRectMake(20, 290, screenW - 40, 40);
            neirongLabel.frame = CGRectMake(36, 335, screenW - 56, 30);
            ImageView5.frame = CGRectMake(20, 345, 8, 8);
            neirongTextview.frame = CGRectMake(20, 370, screenW - 40, 70);
            labelRecheck.frame = CGRectMake(36, 445, screenW - 56, 30);
            ImageView6.frame = CGRectMake(20, 455, 8, 8);
            recheckTextView.frame = CGRectMake(20, 480, screenW - 40, 40);
            labelApprove.frame = CGRectMake(36, 525, screenW - 56, 30);
            ImageView7.frame = CGRectMake(20, 535, 8, 8);
            approveTextView.frame = CGRectMake(20, 560, screenW - 40, 40);
            websiteTypeLabel.frame = CGRectMake(20, 605, screenW - 40, 30);
            websiteTyoeBtn.frame = CGRectMake(20, 640, screenW - 40, 40);
            websiteTypeTableview.frame = CGRectMake(20, 640, screenW - 40, 40);
            geographyTypeLable.frame = CGRectMake(20, 685, screenW - 40, 30);
            geographyTypeBtn.frame = CGRectMake(20, 720, screenW - 40, 40);
            geographyTypeTableview.frame = CGRectMake(20, 720, screenW - 40, 40);
            activityTypeLabel.frame = CGRectMake(20, 765, screenW - 40, 30);
            activityTypeBtn.frame = CGRectMake(20, 800, screenW - 40, 40);
            activityTypeTableview.frame = CGRectMake(20, 800, screenW - 40, 40);
            informationLevelLabel.frame = CGRectMake(20, 845, screenW - 40, 30);
            informationLevelBtn.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationLevelTableview.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationRegionLabel.frame = CGRectMake(20, 925, screenW - 40, 30);
            informationRegionBtn.frame = CGRectMake(20, 960, screenW - 40, 40);
            informationRegionTableview.frame = CGRectMake(20, 960, screenW - 40, 40);
            mainWordLabel.frame = CGRectMake(20, 1005, screenW - 40, 30);
            mainWordBtn.frame = CGRectMake(20, 1040, screenW - 40, 40);
            mainWordTableview.frame = CGRectMake(20, 1040, screenW - 40, 40);
            secondWordLabel.frame = CGRectMake(20, 1085, screenW - 40, 30);
            secondWordBtn.frame = CGRectMake(20, 1120, screenW - 40, 40);
            secondWordTableview.frame = CGRectMake(20, 1120, screenW - 40, 40);
            workAskLabel.frame = CGRectMake(20, 1165, screenW - 40, 30);
            workAskTextview.frame = CGRectMake(20, 1200, screenW - 40, 70);
            describeLabel.frame = CGRectMake(20, 1275, screenW - 40, 30);
            describeTextview.frame = CGRectMake(20, 1310, screenW - 40, 70);
//            photosCollectionView.frame = CGRectMake(20, 1400, screenW - 40, 160);
//            reportBtn.frame = CGRectMake(20, 1575, screenW - 40, 30);
        }];
    }
    if(kindSelect.selected)
    {
        kindSelect.selected = !kindSelect.selected;
    }
    if(reportTypeBtn.selected)
    {
        reportTypeBtn.selected = !reportTypeBtn.selected;
    }
    informationTypeBtn.selected = !informationTypeBtn.selected;
    if(geographyTypeBtn.selected)
    {
        geographyTypeBtn.selected = !geographyTypeBtn.selected;
    }
    if(activityTypeBtn.selected)
    {
        activityTypeBtn.selected = !activityTypeBtn.selected;
    }
    if(informationLevelBtn.selected)
    {
        informationLevelBtn.selected = !informationLevelBtn.selected;
    }
    if(informationRegionBtn.selected)
    {
        informationRegionBtn.selected = !informationRegionBtn.selected;
    }
    if(mainWordBtn.selected)
    {
        mainWordBtn.selected = !mainWordBtn.selected;
    }
    if(secondWordBtn.selected)
    {
        secondWordBtn.selected = !secondWordBtn.selected;
    }
}

#pragma mark - 上报类型按钮点击
-(void)ReportTypeBtnClick
{
    if(!reportTypeBtn.isSelected)
    {
        [UIView animateWithDuration:0.3 animations:^{
            if (self.longPress == 2)
            {
                scrollM.contentSize = CGSizeMake(screenW, 1800);
                reportBtn.frame = CGRectMake(20, 1620, screenW - 40, 30);
            }
            else
            {
                scrollM.contentSize = CGSizeMake(screenW, 2000);
                photosCollectionView.frame = CGRectMake(20, 1605, screenW - 40, 160);
                reportBtn.frame = CGRectMake(20, 1780, screenW - 40, 30);
            }
            reportTypeTableview.frame = CGRectMake(20, 175, screenW - 40, 200);
            informationTypeLabel.frame = CGRectMake(36, 380, screenW - 56, 30);
            ImageView3.frame = CGRectMake(20, 390, 8, 8);
            informationTypeBtn.frame = CGRectMake(20, 415, screenW - 40, 40);
            informationTypeTableview.frame = CGRectMake(20, 415, screenW - 40, 40);
            clueTypeLabel.frame = CGRectMake(36, 460, screenW - 56, 30);
            ImageView4.frame = CGRectMake(20, 470, 8, 8);
            kindSelect.frame = CGRectMake(20, 495, screenW - 40, 40);
            tableV.frame = CGRectMake(20, 495, screenW - 40, 40);
            neirongLabel.frame = CGRectMake(36, 540, screenW -56, 30);
            ImageView5.frame = CGRectMake(20, 550, 8, 8);
            neirongTextview.frame = CGRectMake(20, 575, screenW - 40, 70);
            labelRecheck.frame = CGRectMake(36, 650, screenW - 56, 30);
            ImageView6.frame = CGRectMake(20, 660, 8, 8);
            recheckTextView.frame = CGRectMake(20, 685, screenW - 40, 40);
            labelApprove.frame = CGRectMake(36, 730, screenW - 56, 30);
            ImageView7.frame = CGRectMake(20, 740, 8, 8);
            approveTextView.frame = CGRectMake(20, 765, screenW - 40, 40);
            websiteTypeLabel.frame = CGRectMake(20, 810, screenW - 40, 30);
            websiteTyoeBtn.frame = CGRectMake(20, 845, screenW - 40, 40);
            websiteTypeTableview.frame = CGRectMake(20, 845, screenW - 40, 40);
            geographyTypeLable.frame = CGRectMake(20, 890, screenW - 40, 30);
            geographyTypeBtn.frame = CGRectMake(20, 925, screenW - 40, 40);
            geographyTypeTableview.frame = CGRectMake(20, 925, screenW - 40, 40);
            activityTypeLabel.frame = CGRectMake(20, 970, screenW - 40, 30);
            activityTypeBtn.frame = CGRectMake(20, 1005, screenW - 40, 40);
            activityTypeTableview.frame = CGRectMake(20, 1005, screenW - 40, 40);
            informationLevelLabel.frame = CGRectMake(20, 1050, screenW - 40, 30);
            informationLevelBtn.frame = CGRectMake(20, 1085, screenW - 40, 40);
            informationLevelTableview.frame = CGRectMake(20, 1085, screenW - 40, 40);
            informationRegionLabel.frame = CGRectMake(20, 1130, screenW - 40, 30);
            informationRegionBtn.frame = CGRectMake(20, 1165, screenW - 40, 40);
            informationRegionTableview.frame = CGRectMake(20, 1165, screenW - 40, 40);
            mainWordLabel.frame = CGRectMake(20, 1210, screenW - 40, 30);
            mainWordBtn.frame = CGRectMake(20, 1245, screenW - 40, 40);
            mainWordTableview.frame = CGRectMake(20, 1245, screenW - 40, 40);
            secondWordLabel.frame = CGRectMake(20, 1290, screenW - 40, 30);
            secondWordBtn.frame = CGRectMake(20, 1325, screenW - 40, 40);
            secondWordTableview.frame = CGRectMake(20, 1325, screenW - 40, 40);
            workAskLabel.frame = CGRectMake(20, 1370, screenW - 40, 30);
            workAskTextview.frame = CGRectMake(20, 1405, screenW - 40, 70);
            describeLabel.frame = CGRectMake(20, 1480, screenW - 40, 30);
            describeTextview.frame = CGRectMake(20, 1515, screenW - 40, 70);
//            photosCollectionView.frame = CGRectMake(20, 1605, screenW - 40, 160);
//            reportBtn.frame = CGRectMake(20, 1780, screenW - 40, 30);
        }];
    }
    else
    {
        [UIView animateWithDuration:0.3 animations:^{
            if (self.longPress == 2)
            {
                scrollM.contentSize = CGSizeMake(screenW, 1600);
                reportBtn.frame = CGRectMake(20, 1415, screenW - 40, 30);
            }
            else
            {
                scrollM.contentSize = CGSizeMake(screenW, 1800);
                photosCollectionView.frame = CGRectMake(20, 1400, screenW - 40, 160);
                reportBtn.frame = CGRectMake(20, 1575, screenW - 40, 30);
            }
            reportTypeTableview.frame = CGRectMake(20, 130, screenW - 40, 40);
            informationTypeLabel.frame = CGRectMake(36, 175, screenW - 56, 30);
            ImageView3.frame = CGRectMake(20, 185, 8, 8);
            informationTypeBtn.frame = CGRectMake(20, 210, screenW - 40, 40);
            informationTypeTableview.frame = CGRectMake(20, 210, screenW - 40, 40);
            clueTypeLabel.frame = CGRectMake(36, 255, screenW - 56, 30);
            ImageView4.frame = CGRectMake(20, 265, 8, 8);
            kindSelect.frame = CGRectMake(20, 290, screenW - 40, 40);
            tableV.frame = CGRectMake(20, 290, screenW - 40, 40);
            neirongLabel.frame = CGRectMake(36, 335, screenW - 56, 30);
            ImageView5.frame = CGRectMake(20, 345, 8, 8);
            neirongTextview.frame = CGRectMake(20, 370, screenW - 40, 70);
            labelRecheck.frame = CGRectMake(36, 445, screenW - 56, 30);
            ImageView6.frame = CGRectMake(20, 455, 8, 8);
            recheckTextView.frame = CGRectMake(20, 480, screenW - 40, 40);
            labelApprove.frame = CGRectMake(36, 525, screenW - 56, 30);
            ImageView7.frame = CGRectMake(20, 535, 8, 8);
            approveTextView.frame = CGRectMake(20, 560, screenW - 40, 40);
            websiteTypeLabel.frame = CGRectMake(20, 605, screenW - 40, 30);
            websiteTyoeBtn.frame = CGRectMake(20, 640, screenW - 40, 40);
            websiteTypeTableview.frame = CGRectMake(20, 640, screenW - 40, 40);
            geographyTypeLable.frame = CGRectMake(20, 685, screenW - 40, 30);
            geographyTypeBtn.frame = CGRectMake(20, 720, screenW - 40, 40);
            geographyTypeTableview.frame = CGRectMake(20, 720, screenW - 40, 40);
            activityTypeLabel.frame = CGRectMake(20, 765, screenW - 40, 30);
            activityTypeBtn.frame = CGRectMake(20, 800, screenW - 40, 40);
            activityTypeTableview.frame = CGRectMake(20, 800, screenW - 40, 40);
            informationLevelLabel.frame = CGRectMake(20, 845, screenW - 40, 30);
            informationLevelBtn.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationLevelTableview.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationRegionLabel.frame = CGRectMake(20, 925, screenW - 40, 30);
            informationRegionBtn.frame = CGRectMake(20, 960, screenW - 40, 40);
            informationRegionTableview.frame = CGRectMake(20, 960, screenW - 40, 40);
            mainWordLabel.frame = CGRectMake(20, 1005, screenW - 40, 30);
            mainWordBtn.frame = CGRectMake(20, 1040, screenW - 40, 40);
            mainWordTableview.frame = CGRectMake(20, 1040, screenW - 40, 40);
            secondWordLabel.frame = CGRectMake(20, 1085, screenW - 40, 30);
            secondWordBtn.frame = CGRectMake(20, 1120, screenW - 40, 40);
            secondWordTableview.frame = CGRectMake(20, 1120, screenW - 40, 40);
            workAskLabel.frame = CGRectMake(20, 1165, screenW - 40, 30);
            workAskTextview.frame = CGRectMake(20, 1200, screenW - 40, 70);
            describeLabel.frame = CGRectMake(20, 1275, screenW - 40, 30);
            describeTextview.frame = CGRectMake(20, 1310, screenW - 40, 70);
//            photosCollectionView.frame = CGRectMake(20, 1400, screenW - 40, 160);
//            reportBtn.frame = CGRectMake(20, 1575, screenW - 40, 30);
        }];
    }
    if(kindSelect.selected)
    {
        kindSelect.selected = !kindSelect.selected;
    }
    reportTypeBtn.selected = !reportTypeBtn.selected;
    if(informationTypeBtn.selected)
    {
        informationTypeBtn.selected = !informationTypeBtn.selected;
    }
    if(geographyTypeBtn.selected)
    {
        geographyTypeBtn.selected = !geographyTypeBtn.selected;
    }
    if(activityTypeBtn.selected)
    {
        activityTypeBtn.selected = !activityTypeBtn.selected;
    }
    if(informationLevelBtn.selected)
    {
        informationLevelBtn.selected = !informationLevelBtn.selected;
    }
    if(informationRegionBtn.selected)
    {
        informationRegionBtn.selected = !informationRegionBtn.selected;
    }
    if(mainWordBtn.selected)
    {
        mainWordBtn.selected = !mainWordBtn.selected;
    }
    if(secondWordBtn.selected)
    {
        secondWordBtn.selected = !secondWordBtn.selected;
    }
}

#pragma mark - 提交数据
-(void)reportTheData
{
    CGSize imgSize = CGSizeMake(400.0f, 400.0f);
    NSMutableArray *newImageArr = [NSMutableArray array];
    NSString *imgString = nil;
    NSString *imgString2 = nil;
    //压缩图片
    KDLog(@"%d", (int)_photoArrayS.count);
    
    if(_photoArrayS.count == 1)
    {
        UIGraphicsBeginImageContext(imgSize);
        [_photoArrayS[0] drawInRect:CGRectMake(0, 0, imgSize.width, imgSize.height)];
        UIImage* newImage = UIGraphicsGetImageFromCurrentImageContext();
        UIGraphicsEndImageContext();
        NSData *_data = UIImageJPEGRepresentation(newImage, 1.0f);
        NSString *_encodedImageStr = [_data base64EncodedStringWithOptions:0];
        imgString = [NSString stringWithFormat:@"%@", _encodedImageStr];
    }
    else
    {
        for(int i = 0; i < _photoArrayS.count; i++)
        {
            UIGraphicsBeginImageContext(imgSize);
            [_photoArrayS[i] drawInRect:CGRectMake(0, 0, imgSize.width, imgSize.height)];
            UIImage* newImage = UIGraphicsGetImageFromCurrentImageContext();
            UIGraphicsEndImageContext();
            NSData *_data = UIImageJPEGRepresentation(newImage, 1.0f);
            NSString *_encodedImageStr = [_data base64EncodedStringWithOptions:0];
            if(i < _photoArrayS.count - 1)
            {
                if(i == 0)
                {
                    imgString = [NSString stringWithFormat:@"%@#",_encodedImageStr];
                }
                else
                {
                    imgString = [NSString stringWithFormat:@"%@%@#",imgString, _encodedImageStr];
                }
            }
            else
            {
                imgString = [NSString stringWithFormat:@"%@%@",imgString, _encodedImageStr];
            }
            [newImageArr addObject:newImage];
        }
    }
    imgString2 = [imgString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    imgString2 = [imgString2 stringByReplacingOccurrencesOfString:@"+" withString:@"%2B"];
    KDLog(@"base64Image = %@",imgString);
    if(inputTex1.text.length == 0)
    {
        [SVProgressHUD showErrorWithStatus:@"上报标题不能为空" maskType:SVProgressHUDMaskTypeGradient];
        return;
    }
    
    if(neirongTextview.text.length == 0)
    {
        [SVProgressHUD showErrorWithStatus:@"报送内容不能为空" maskType:SVProgressHUDMaskTypeGradient];
        return;
    }
    
    if(recheckTextView.text.length == 0)
    {
        [SVProgressHUD showErrorWithStatus:@"核查人不能为空" maskType:SVProgressHUDMaskTypeGradient];
        return;
    }
    
    if(approveTextView.text.length == 0)
    {
        [SVProgressHUD showErrorWithStatus:@"审核人不能为空" maskType:SVProgressHUDMaskTypeGradient];
        return;
    }
    
    KDAccount *account = [KDAccountTool account];
    NSString *inputT = [inputTex1.text stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSString *workAskText = [workAskTextview.text stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSString *neiRongText = [neirongTextview.text stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSString *descRibeText = [describeTextview.text stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSString *uregion = [NSString stringWithFormat:@"%ld",(long)account.u_Region];
    //NSLog(@"sendUrl = %@",sendUrl);
    NSString *sendReportUrl = [NSString stringWithFormat:@"%@&method=reportMobileWQ&token=%@", ServerActionAddr, account.tokens];
    NSString *rechechPeople = [recheckTextView.text stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSString *approvePeople = [approveTextView.text stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    //进度圈提示进度
    [SVProgressHUD showWithStatus:@"正在上报" maskType:SVProgressHUDMaskTypeGradient ];
    //NSLog(@"region = %@", uregion);   
    //上传视频或图片：
    AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
    manager.responseSerializer = [AFHTTPResponseSerializer serializer];
    
    NSDictionary *dic = nil;
    if(self.longPress == 2)
    {
        dic = @{@"report_title":inputT,@"report_content":neiRongText,@"report_task":workAskText,@"report_desc":descRibeText,@"area":uregion,@"c_subType":selectClueID,@"reportType":reportTypeId,@"infoType":informationTypeId,@"physicsRegion":geographyTypeId,@"activeType":activityTypeId,@"mainKeyWord":mainWordId,@"subKeyWord":secondWordId,@"infoLevel":informationLevelId,@"isLocal":informationRegionId,@"recheckPeople":rechechPeople,@"approvePeople":approvePeople};
    }
    else
    {
        dic = @{@"report_title":inputT,@"report_content":neiRongText,@"report_task":workAskText,@"report_desc":descRibeText,@"area":uregion,@"c_subType":selectClueID,@"reportType":reportTypeId,@"infoType":informationTypeId,@"physicsRegion":geographyTypeId,@"activeType":activityTypeId,@"mainKeyWord":mainWordId,@"subKeyWord":secondWordId,@"infoLevel":informationLevelId,@"isLocal":informationRegionId,@"recheckPeople":rechechPeople,@"approvePeople":approvePeople,@"image":imgString2};
    }
    
    [manager POST:sendReportUrl parameters:dic success:^(AFHTTPRequestOperation *operation, id responseObject)
    {
        //进度条消失
        [SVProgressHUD showSuccessWithStatus:@"上传成功" maskType:SVProgressHUDMaskTypeGradient];
        
        //请求成功关闭当前界面
        [self.navigationController popViewControllerAnimated:YES];
    }
    failure:^(AFHTTPRequestOperation *operation, NSError *error)
    {
        [SVProgressHUD showErrorWithStatus:@"上传失败" maskType:SVProgressHUDMaskTypeGradient];
    }];
}

#pragma mark - 初始化显示小图片的collectionview
-(void)createCollectView
{
    UICollectionViewFlowLayout *flowLayout =[[UICollectionViewFlowLayout alloc] init];
    photosCollectionView  = [[UICollectionView alloc] initWithFrame:CGRectMake(20, 1400, screenW - 40, 160) collectionViewLayout:flowLayout];
    [photosCollectionView registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:@"photocell"];
    photosCollectionView.backgroundColor = [UIColor whiteColor];
    photosCollectionView.dataSource = self;
    photosCollectionView.delegate = self;
    [scrollM addSubview:photosCollectionView];
}

#pragma mark - UICollectionView的代理
-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
{
    if(indexPath.row == _photoArrayS.count)
    {
        //点击的是加号按钮
        if(_photoArrayS.count < 4)
        {
            [self addMorePhoto];
        }
        else
        {
            //关闭键盘
            [[[UIApplication sharedApplication] keyWindow] endEditing:YES];
            scrollM.frame = CGRectMake(0, 0, screenW, screenH);
            scrollM.contentSize = CGSizeMake(screenW, 1800);
            [SVProgressHUD showErrorWithStatus:@"你只能同时发送4张照片" maskType:SVProgressHUDMaskTypeGradient];
        }
    }
    else
    {
        //点击普通图片放大显示预览
        [self ClickActiondo2:(int)indexPath.row];
    }
}

#pragma mark - 单击图片显示预览
-(void)ClickActiondo2:(int)sender
{
    [photoAarray2 removeAllObjects];
    for (int i = 0; i < _photoArrayS.count; i++)
    {
        [photoAarray2 addObject:_photoArrayS[i]];
    }
    //NSLog(@"b2%ld",(long)sender.tag);
    [_photoArrayS removeAllObjects];
    for (int i = 0; i < photoAarray2.count; i++)
    {
        [_photoArrayS addObject:photoAarray2[i]];
    }
    //调用展示窗口
    ImgShowViewController *imgShow = [[ImgShowViewController alloc] initWithSourceData:photoAarray2 withIndex:sender];
    //NSLog(@"%ld",sender.tag - 101);
    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:imgShow];
    [UIView animateWithDuration:0.5 animations:^{
        [self presentViewController:nav animated:YES completion:nil];
    }];
}

#pragma mark - 定义每个collectionview的cell的大小
-(CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath
{
    return CGSizeMake(PhotoWidth, PhotoWidth);
}

#pragma mark - 定义每个Section的margin
-(UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout insetForSectionAtIndex:(NSInteger)section
{
    return UIEdgeInsetsMake(10, 10, 10, 10); //分别为上、左、下、右
}

#pragma mark - 定义collectionview的cell的个数
-(NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
{
    return _photoArrayS.count == 0 ? 1:_photoArrayS.count + 1;
}

#pragma mark - 显示collectionview的cell
-(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
    UICollectionViewCell *cell=[collectionView dequeueReusableCellWithReuseIdentifier:@"photocell" forIndexPath:indexPath];
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, PhotoWidth, PhotoWidth)];
    imageView.tag = indexPath.row + 100;
    if(_photoArrayS.count == 0||indexPath.row == _photoArrayS.count)
    {
        imageView.image = [UIImage imageNamed:@"添加照片"];
    }
    else
    {
        while ([cell.contentView.subviews lastObject] != nil)
        {
            [(UIView*)[cell.contentView.subviews lastObject] removeFromSuperview];
        }
        imageView.image = _photoArrayS[indexPath.row];
    }
    imageView.contentMode = UIViewContentModeScaleAspectFit;
    [cell.contentView addSubview:imageView];
    return  cell;
}

#pragma mark - collectionview中点击添加更多得照片操作
-(void)addMorePhoto
{
    //NSLog(@"添加");
    actionSheet = [[LXActionSheet alloc]initWithTitle:nil delegate:self cancelButtonTitle:@"取消" destructiveButtonTitle:nil otherButtonTitles:@[@"拍照",@"从手机相册选择"]];
    [actionSheet showInView:self.view];
}

#pragma mark - uitextview开始编辑的代理方法
-(void)textViewDidBeginEditing:(UITextView *)textView
{
    if([textView.text isEqualToString:@"请输入工作要求"])
    {
        textView.text = @"";
        textView.textColor = [UIColor blackColor];
        [UIView animateWithDuration:0.3 animations:^{
            self.view.frame = CGRectMake(0, -30, screenW, screenH);
        }];
    }
    else if([textView.text isEqualToString:@"请输入上报内容"])
    {
        textView.text = @"";
        textView.textColor = [UIColor blackColor];
        [UIView animateWithDuration:0.3 animations:^{
            self.view.frame = CGRectMake(0, -55, screenW, screenH);
        }];
    }
    else if([textView.text isEqualToString:@"请输入补充内容"])
    {
        textView.text = @"";
        textView.textColor = [UIColor blackColor];
        [UIView animateWithDuration:0.3 animations:^{
            self.view.frame = CGRectMake(0, -216, screenW, screenH);
        }];
    }
}

#pragma mark - textview结束编辑
-(void)textViewDidEndEditing:(UITextView *)textView
{
    if(textView.text.length < 1)
    {
        if(textView.tag == 100)
        {
            textView.text = @"请输入工作要求";
            textView.textColor = [UIColor grayColor];
        }
        else if(textView.tag == 101)
        {
            textView.text = @"请输入上报内容";
            textView.textColor = [UIColor grayColor];
        }
        else if(textView.tag == 102)
        {
            textView.text = @"请输入补充内容";
            textView.textColor = [UIColor grayColor];
        }
    }
}

#pragma mark - 将换行或完成按钮当做结束编辑的按钮
-(BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text
{
    if ([text isEqualToString:@"\n"])
    {
        [textView resignFirstResponder];
        [UIView animateWithDuration:0.3 animations:^{
            self.view.frame = CGRectMake(0, 64, screenW, screenH);
        }];
        return NO;
    }
    return YES;
}

#pragma mark - 点击return键盘消失
-(BOOL)textFieldShouldReturn:(UITextField *)textField
{
    self.view.frame = CGRectMake(0, 64, screenW, screenH);
    [textField resignFirstResponder];
    return YES;
}

#pragma mark - 点击线索类型按钮
-(void)kindBtnClick
{
    if(!kindSelect.isSelected)
    {
        [UIView animateWithDuration:0.3 animations:^{
            reportTypeTableview.frame = CGRectMake(20, 130, screenW - 40, 40);
            informationTypeLabel.frame = CGRectMake(36, 175, screenW - 56, 30);
            ImageView3.frame = CGRectMake(20, 185, 8, 8);
            informationTypeBtn.frame = CGRectMake(20, 210, screenW - 40, 40);
            informationTypeTableview.frame = CGRectMake(20, 210, screenW - 40, 40);
            clueTypeLabel.frame = CGRectMake(36, 255, screenW - 56, 30);
            ImageView4.frame = CGRectMake(20, 265, 8, 8);
            kindSelect.frame = CGRectMake(20, 290, screenW - 40, 40);
            tableV.frame = CGRectMake(20, 335, screenW - 40, 200);
            neirongLabel.frame = CGRectMake(36, 540, screenW - 56, 30);
            ImageView5.frame = CGRectMake(20, 550, 8, 8);
            neirongTextview.frame = CGRectMake(20, 575, screenW - 40, 70);
            reportBtn.frame = CGRectMake(20, 900, screenW - 40, 30);
            labelRecheck.frame = CGRectMake(36, 650, screenW - 56, 30);
            ImageView6.frame = CGRectMake(20, 660, 8, 8);
            recheckTextView.frame = CGRectMake(20, 685, screenW - 40, 40);
            labelApprove.frame = CGRectMake(36, 730, screenW - 56, 30);
            ImageView7.frame = CGRectMake(20, 740, 8, 8);
            approveTextView.frame = CGRectMake(20, 765, screenW - 40, 40);
            websiteTypeLabel.frame = CGRectMake(20, 810, screenW - 40, 30);
            websiteTyoeBtn.frame = CGRectMake(20, 845, screenW - 40, 40);
            websiteTypeTableview.frame = CGRectMake(20, 845, screenW - 40, 40);
            geographyTypeLable.frame = CGRectMake(20, 890, screenW - 40, 30);
            geographyTypeBtn.frame = CGRectMake(20, 925, screenW - 40, 40);
            geographyTypeTableview.frame = CGRectMake(20, 925, screenW - 40, 40);
            activityTypeLabel.frame = CGRectMake(20, 970, screenW - 40, 30);
            activityTypeBtn.frame = CGRectMake(20, 1005, screenW - 40, 40);
            activityTypeTableview.frame = CGRectMake(20, 1005, screenW - 40, 40);
            informationLevelLabel.frame = CGRectMake(20, 1050, screenW - 40, 30);
            informationLevelBtn.frame = CGRectMake(20, 1085, screenW - 40, 40);
            informationLevelTableview.frame = CGRectMake(20, 1085, screenW - 40, 40);
            informationRegionLabel.frame = CGRectMake(20, 1130, screenW - 40, 30);
            informationRegionBtn.frame = CGRectMake(20, 1165, screenW - 40, 40);
            informationRegionTableview.frame = CGRectMake(20, 1165, screenW - 40, 40);
            mainWordLabel.frame = CGRectMake(20, 1210, screenW - 40, 30);
            mainWordBtn.frame = CGRectMake(20, 1245, screenW - 40, 40);
            mainWordTableview.frame = CGRectMake(20, 1245, screenW - 40, 40);
            secondWordLabel.frame = CGRectMake(20, 1290, screenW - 40, 30);
            secondWordBtn.frame = CGRectMake(20, 1325, screenW - 40, 40);
            secondWordTableview.frame = CGRectMake(20, 1325, screenW - 40, 40);
            workAskLabel.frame = CGRectMake(20, 1370, screenW - 40, 30);
            workAskTextview.frame = CGRectMake(20, 1405, screenW - 40, 70);
            describeLabel.frame = CGRectMake(20, 1480, screenW - 40, 30);
            describeTextview.frame = CGRectMake(20, 1515, screenW - 40, 70);
//            photosCollectionView.frame = CGRectMake(20, 1605, screenW - 40, 160);
//            reportBtn.frame = CGRectMake(20, 1780, screenW - 40, 30);
            
            if (self.longPress == 2)
            {
                scrollM.contentSize = CGSizeMake(screenW, 1800);
                reportBtn.frame = CGRectMake(20, 1620, screenW - 40, 30);
            }
            else
            {
                scrollM.contentSize = CGSizeMake(screenW, 2000);
                photosCollectionView.frame = CGRectMake(20, 1605, screenW - 40, 160);
                reportBtn.frame = CGRectMake(20, 1780, screenW - 40, 30);
            }
        }];
    }
    else
    {
        [UIView animateWithDuration:0.3 animations:^{
            reportTypeTableview.frame = CGRectMake(20, 130, screenW - 40, 40);
            informationTypeLabel.frame = CGRectMake(36, 175, screenW - 56, 30);
            ImageView3.frame = CGRectMake(20, 185, 8, 8);
            informationTypeBtn.frame = CGRectMake(20, 210, screenW - 40, 40);
            informationTypeTableview.frame = CGRectMake(20, 210, screenW - 40, 40);
            clueTypeLabel.frame = CGRectMake(36, 255, screenW - 56, 30);
            ImageView4.frame = CGRectMake(20, 265, 8, 8);
            kindSelect.frame = CGRectMake(20, 290, screenW - 40, 40);
            tableV.frame = CGRectMake(20, 290, screenW - 40, 40);
            neirongLabel.frame = CGRectMake(36, 335, screenW - 56, 30);
            ImageView5.frame = CGRectMake(20, 345, 8, 8);
            neirongTextview.frame = CGRectMake(20, 370, screenW - 40, 70);
            reportBtn.frame = CGRectMake(20, 695, screenW - 40, 30);
            labelRecheck.frame = CGRectMake(36, 445, screenW - 56, 30);
            ImageView6.frame = CGRectMake(20, 455, 8, 8);
            recheckTextView.frame = CGRectMake(20, 480, screenW - 40, 40);
            labelApprove.frame = CGRectMake(36, 525, screenW - 56, 30);
            ImageView7.frame = CGRectMake(20, 535, 8, 8);
            approveTextView.frame = CGRectMake(20, 560, screenW - 40, 40);
            websiteTypeLabel.frame = CGRectMake(20, 605, screenW - 40, 30);
            websiteTyoeBtn.frame = CGRectMake(20, 640, screenW - 40, 40);
            websiteTypeTableview.frame = CGRectMake(20, 640, screenW - 40, 40);
            geographyTypeLable.frame = CGRectMake(20, 685, screenW - 40, 30);
            geographyTypeBtn.frame = CGRectMake(20, 720, screenW - 40, 40);
            geographyTypeTableview.frame = CGRectMake(20, 720, screenW - 40, 40);
            activityTypeLabel.frame = CGRectMake(20, 765, screenW - 40, 30);
            activityTypeBtn.frame = CGRectMake(20, 800, screenW - 40, 40);
            activityTypeTableview.frame = CGRectMake(20, 800, screenW - 40, 40);
            informationLevelLabel.frame = CGRectMake(20, 845, screenW - 40, 30);
            informationLevelBtn.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationLevelTableview.frame = CGRectMake(20, 880, screenW - 40, 40);
            informationRegionLabel.frame = CGRectMake(20, 925, screenW - 40, 30);
            informationRegionBtn.frame = CGRectMake(20, 960, screenW - 40, 40);
            informationRegionTableview.frame = CGRectMake(20, 960, screenW - 40, 40);
            mainWordLabel.frame = CGRectMake(20, 1005, screenW - 40, 30);
            mainWordBtn.frame = CGRectMake(20, 1040, screenW - 40, 40);
            mainWordTableview.frame = CGRectMake(20, 1040, screenW - 40, 40);
            secondWordLabel.frame = CGRectMake(20, 1085, screenW - 40, 30);
            secondWordBtn.frame = CGRectMake(20, 1120, screenW - 40, 40);
            secondWordTableview.frame = CGRectMake(20, 1120, screenW - 40, 40);
            workAskLabel.frame = CGRectMake(20, 1165, screenW - 40, 30);
            workAskTextview.frame = CGRectMake(20, 1200, screenW - 40, 70);
            describeLabel.frame = CGRectMake(20, 1275, screenW - 40, 30);
            describeTextview.frame = CGRectMake(20, 1310, screenW - 40, 70);
//            photosCollectionView.frame = CGRectMake(20, 1400, screenW - 40, 160);
//            reportBtn.frame = CGRectMake(20, 1575, screenW - 40, 30);
            
            if (self.longPress == 2)
            {
                scrollM.contentSize = CGSizeMake(screenW, 1600);
                reportBtn.frame = CGRectMake(20, 1415, screenW - 40, 30);
            }
            else
            {
                scrollM.contentSize = CGSizeMake(screenW, 1800);
                photosCollectionView.frame = CGRectMake(20, 1400, screenW - 40, 160);
                reportBtn.frame = CGRectMake(20, 1575, screenW - 40, 30);
            }
        }];
    }
    kindSelect.selected = !kindSelect.selected;
    if(reportTypeBtn.selected)
    {
        reportTypeBtn.selected = !reportTypeBtn.selected;
    }
    if(informationTypeBtn.selected)
    {
        informationTypeBtn.selected = !informationTypeBtn.selected;
    }
    if(geographyTypeBtn.selected)
    {
        geographyTypeBtn.selected = !geographyTypeBtn.selected;
    }
    if(activityTypeBtn.selected)
    {
        activityTypeBtn.selected = !activityTypeBtn.selected;
    }
    if(informationLevelBtn.selected)
    {
        informationLevelBtn.selected = !informationLevelBtn.selected;
    }
    if(informationRegionBtn.selected)
    {
        informationRegionBtn.selected = !informationRegionBtn.selected;
    }
    if(mainWordBtn.selected)
    {
        mainWordBtn.selected = !mainWordBtn.selected;
    }
    if(secondWordBtn.selected)
    {
        secondWordBtn.selected = !secondWordBtn.selected;
    }
}

#pragma mark - tableview返回行数
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return kindArr.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];
    if (cell == nil)
    {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"cell"];
    }
    
    if(kindArr.count > 0)
    {
        //NSLog(@"%@",kindArr);
        cell.textLabel.text = kindArr[indexPath.row];
        //定制cell右按钮
        cell.accessoryType = UITableViewCellAccessoryNone;
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return cell;
}

#pragma mark - 当单元格被选中
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    [kindSelect setTitle:kindArr[indexPath.row] forState:UIControlStateNormal];
    selectClueID = [NSString stringWithFormat:@"%@",kindID[indexPath.row]];
    [self kindBtnClick];
    kindSelect.selected = !kindSelect.selected;
}

#pragma mark - 每次删除找后执行
-(void)deletAction:(NSNotification *)note
{
    NSDictionary *user = [note userInfo];
    NSString *message = [user objectForKey:@"curz"];
    int whichDele = [message intValue];
    //NSLog(@"%@",_photoArrayS);
    //清空图片
    [_photoArrayS removeObjectAtIndex:whichDele];
    //NSLog(@"%lu",(unsigned long)imgListP.count);
    NSIndexPath *indexP = [NSIndexPath indexPathForRow:whichDele inSection:0];
    NSArray *deleteItems = @[indexP];
    [photosCollectionView deleteItemsAtIndexPaths:deleteItems];
    //NSLog(@"2 %@",photosCollectionView.subviews);
    for(int i = 0; i < photosCollectionView.subviews.count; i++)
    {
        UIImageView *imv = (UIImageView *)[photosCollectionView viewWithTag:whichDele + 100];
        [imv removeFromSuperview];
        imv = nil;
    }
}

#pragma mark - LXActionSheetDelegate代理
- (void)didClickOnButtonIndex:(NSInteger *)buttonIndex
{
    //NSLog(@"%d",(int)buttonIndex);
    int btnIndex = (int)buttonIndex;
    ipc = [[UIImagePickerController alloc] init];
    // 设置代理
    ipc.delegate = self;
    
    if(btnIndex == 0)
    {
        if (![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera])  return;
        ipc.sourceType = UIImagePickerControllerSourceTypeCamera;
        ipc.allowsEditing = YES;
        ipc.mediaTypes = [NSArray arrayWithObjects: @"public.image", nil];
        [self presentViewController:ipc animated:YES completion:nil];
    }
    else if(btnIndex == 1)
    {
        ELCImagePickerController *elcPicker = [[ELCImagePickerController alloc] initImagePicker];
        elcPicker.maximumImagesCount = 4; //设置最多选取几张照片
        elcPicker.returnsOriginalImage = YES; //Only return the fullScreenImage, not the fullResolutionImage
        elcPicker.returnsImage = YES; //Return UIimage if YES. If NO, only return asset location information
        elcPicker.onOrder = YES; //For multiple image selection, display and return order of selected images
        elcPicker.mediaTypes = @[(NSString *)kUTTypeImage, (NSString *)kUTTypeMovie]; //Supports image and movie types
        elcPicker.imagePickerDelegate = self;
        [self presentViewController:elcPicker animated:YES completion:nil];
    }
}

- (void)displayPickerForGroup:(ALAssetsGroup *)group
{
    ELCAssetTablePicker *tablePicker = [[ELCAssetTablePicker alloc] initWithStyle:UITableViewStylePlain];
    tablePicker.singleSelection = YES;
    tablePicker.immediateReturn = YES;
    
    ELCImagePickerController *elcPicker = [[ELCImagePickerController alloc] initWithRootViewController:tablePicker];
    elcPicker.maximumImagesCount = 1;
    elcPicker.imagePickerDelegate = self;
    elcPicker.returnsOriginalImage = YES; //Only return the fullScreenImage, not the fullResolutionImage
    elcPicker.returnsImage = YES; //Return UIimage if YES. If NO, only return asset location information
    elcPicker.onOrder = NO; //For single image selection, do not display and return order of selected images
    tablePicker.parent = elcPicker;
    // Move me
    tablePicker.assetGroup = group;
    [tablePicker.assetGroup setAssetsFilter:[ALAssetsFilter allAssets]];
    [self presentViewController:elcPicker animated:YES completion:nil];
}

#pragma mark ELCImagePickerControllerDelegate Methods
- (void)elcImagePickerController:(ELCImagePickerController *)picker didFinishPickingMediaWithInfo:(NSArray *)info
{
    [self dismissViewControllerAnimated:YES completion:nil];
    //不隐藏navigationbar
    self.navigationController.navigationBar.hidden = NO;
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
    
    NSMutableArray *images = [NSMutableArray arrayWithCapacity:[info count]];
    for (NSDictionary *dict in info)
    {
        if ([dict objectForKey:UIImagePickerControllerMediaType] == ALAssetTypePhoto)
        {
            if ([dict objectForKey:UIImagePickerControllerOriginalImage])
            {
                UIImage* image=[dict objectForKey:UIImagePickerControllerOriginalImage];
                [images addObject:image];
                [_photoArrayS addObject:image];
                [photoAarray2 addObject:image];
                
                KDLog(@"最终照片个数 %lu", (unsigned long)_photoArrayS.count);
                
                if(_photoArrayS.count < 4)
                {
                    //NSLog(@"代理imgcopy = %@",imgCopy);
                    [photosCollectionView reloadData];
                }
                else if (_photoArrayS.count == 4)
                {
                    [photosCollectionView reloadData];
//                }
//                else
//                {
//                    //移除多余的照片
//                    for (int i = 4; i < _photoArrayS.count; i++)
//                    {
//                        [_photoArrayS removeObjectAtIndex:i];
//                        [photoAarray2 removeObjectAtIndex:i];
//                    }
                    
                    [SVProgressHUD showErrorWithStatus:@"你只能同时发送4张照片" maskType:SVProgressHUDMaskTypeGradient];
                    return;
                }
            }
            else
            {
                KDLog(@"UIImagePickerControllerReferenceURL = %@", dict);
            }
        }
        else if ([dict objectForKey:UIImagePickerControllerMediaType] == ALAssetTypeVideo)
        {
            if ([dict objectForKey:UIImagePickerControllerOriginalImage])
            {
                UIImage* image=[dict objectForKey:UIImagePickerControllerOriginalImage];
                [images addObject:image];
                [_photoArrayS addObject:image];
                [photoAarray2 addObject:image];
                [photosCollectionView reloadData];
            }
            else
            {
                KDLog(@"UIImagePickerControllerReferenceURL = %@", dict);
            }
        }
        else
        {
            KDLog(@"Uknown asset type");
        }
    }
}

- (void)elcImagePickerControllerDidCancel:(ELCImagePickerController *)picker
{
    [self dismissViewControllerAnimated:YES completion:nil];
}

#pragma mark - UIImagePickerControllerDelegate 在选择完图片后调用
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
    if(_photoArrayS.count > 4)
    {
        [SVProgressHUD showErrorWithStatus:@"你只能同时发送4张照片" maskType:SVProgressHUDMaskTypeGradient];
        return;
    }
    //销毁控制器
    [picker dismissViewControllerAnimated:YES completion:nil];
    //隐藏navigationbar
    self.navigationController.navigationBar.hidden = NO;
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
    //获得图片
    //照片的情况下
     UIImage *image = info[UIImagePickerControllerEditedImage];
    if(image == nil)
    {
        image = info[UIImagePickerControllerOriginalImage];
    }
    //保存图片
    [_photoArrayS addObject:image];
    [photoAarray2 addObject:image];
    [photosCollectionView reloadData];
}

#pragma mark - imagePicker取消操作
- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker
{
    [_photoArrayS removeAllObjects];
    [photoAarray2 removeAllObjects];
    // 销毁控制器
    [picker dismissViewControllerAnimated:YES completion:nil];
}

-(void)setTextFieldLeftPadding:(UITextField *)textField forWidth:(CGFloat)leftWidth
{
    CGRect frame = textField.frame;
    frame.size.width = leftWidth;
    UIView *leftview = [[UIView alloc] initWithFrame:frame];
    textField.leftViewMode = UITextFieldViewModeAlways;
    textField.leftView = leftview;
}

#pragma mark - 隐藏键盘
-(void)keyboardHide:(UITapGestureRecognizer*)tap
{
    //关闭键盘
    [self.view endEditing:YES];
    self.view.frame = CGRectMake(0, 64, screenW, screenH);
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/
- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.navigationController.navigationBar.hidden = NO;
}
@end
